LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Open & print an existing HTML report

I want to open a previously created, saved & closed HTML report for printing.  I don't see any thing in the Report Generation vi group for opening existing reports and wasn't sure how to go about it (if at all possible) using the standard file open options to get to a report.  Any ideas?  Thanks.
0 Kudos
Message 1 of 5
(5,117 Views)

Hello,

To print and view an HTML report you have already saved to disk, just create a new report, and use the "Append User Formatted HTML to Report.vi" to append the entire HTML content of the report to a new report.  Then use the "Print Report.vi" and "Open HTML Report in Browser.vi" to print and view it.  This is the easiest way I can think of...here is a screenshot showing what I mean:

Hope this helps,
-D

Message Edited by Darren on 04-18-2006 01:31 PM

Message 2 of 5
(5,112 Views)
Hmm...well yes that does work for the text of the report, thanks Darren.  However I've got plots that were saved as images for the original HTML report and the links to the images are broken using this technique.  Any ideas on how to bring them back in?
0 Kudos
Message 3 of 5
(5,096 Views)
After thought:  I haven't delved into this kind of thing at all before, but is there a slick way to get IE to do the work (loading & printing) with ActiveX or something?
0 Kudos
Message 4 of 5
(5,092 Views)

Yes, you could do that.  I haven't tried it before, but I'm guessing as long as you select the proper class, it shouldn't be too difficult.  I imagine there's something like an "OpenDocument" and a "PrintDocument" method for the browser class.  Give it a shot, I'm guessing you could find an example VI on the dev exchange somewhere.  Let me know how it turns out.

-D

0 Kudos
Message 5 of 5
(5,085 Views)