LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I save a Report to file using Report Generation vi's?(not HTML)

Hi,
 
Sorry about re-stating the problem.   I am using the Report Generation vi's to create a report. There is an option to save HTML reports to file, however I must use Standard Report because I need to print in Landscape mode. HTML reports will not print in Landscape. One of the requirements is to save the report to file on the hard disk. I have tried to use the standard Open File and Write File vi's. A file is created, but the report is not saved into the file. How do I connect a report so that it will be saved in the file? I already tried simply wiring the report refnum into the data input of the Write File vi.
 
I have attached an example of my code.
 
I am using V7.1 Full Version.  I have V8 available if that is any help.
 
Any ideas?
Thanks,
Chris
 
0 Kudos
Message 1 of 7
(3,719 Views)

hi there

the vi attached will create a html-report and save it on disk. be sure to

- create the folder specified in the path constant
- place something on the front panel (an empty FP won't be printed!)
- adjust the page orientation to landscape in the browser before printing on paper

 

 

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
Message 2 of 7
(3,707 Views)

Thanks,

I did notice that the front panel does get turned and only the left half gets printed on the Portrait oriented page.

I suppose that I could programatically open a browser for the user.

Can the browser be opened with the file showing? The user could then be instructed to set the browser to Landscape and to print manually.

I was hoping for a highly automated process for a production setting.

Thanks,

Chris

 

0 Kudos
Message 3 of 7
(3,703 Views)
I did revamp chrisger's code a little. Now it just prints in landscape to the default printer.  You can change the string constant to be whatever printer you want.  The save report will not work with the Standard Report option.  I'll need to poke around with it some more to see how to save this.
jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 4 of 7
(3,689 Views)
I did find this KB: How to Save Standard Reports?
 
Attached is an example of how to do this.  You will have to relink the subVI's or else you will have a broken arrow. One is in LV7 and the other is in LV8

Message Edited by Sam R on 12-15-2005 02:25 PM

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Download All
0 Kudos
Message 5 of 7
(3,688 Views)

Standard to HTML is interesting, however seems to be strictly text based. I have jpeg images of the front panel showing cahrts and graphs that need to be saved in the report. Maybe if I can save the front panels directly to a file.... and then I can later recall the file and print it out.

Chris

 

0 Kudos
Message 6 of 7
(3,675 Views)

You can always hit ctrl>>print screen!!! Smiley Wink  However, I don't think that is what you are looking for.  Here is a simple VI I found in one of our Knowledge Bases.  It was written for 5.1 but I modified it for 8.0.  You can embed it into your code and change all the controls to constants.  That way the user won't have to set anything and you can print the real front panel without the extra controls.

Cheers,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 7 of 7
(3,662 Views)