LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

HTML Report Generation using Labwindows

Is it possible to generate reports using Labwindows in HTML format?
This file needs to be created and stored by labwindows for later viewing using Explorer. The template for the report will be same with corresponding values changing on every run.
0 Kudos
Message 1 of 3
(4,076 Views)
Since the file has a fixed format, a trivial approach could be to write the template with a html editor (word, as an ultimate resource!) and then open the html file in cvi, modify what needed adding your test results and saving in a new file.

Attached a small sample for this solution.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 3
(4,076 Views)
Hello Geetha,

You could also use the Microsoft Word ActiveX instrument drivers (wordreport.fp and word2000.fp) located under your CVI folder\toolslib\activex\word. The Word Report instrument driver creates detailed reports in Word through ActiveX Automation.

Specifically you would use the WordRpt_DocumentSaveAsHTML() function call to save your report as an HTML file.

The following example program demonstrates how to use these instrument drivers.

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3EC0B56A4E034080020E74861&p_node=DZ52156&p_source=External

Good luck!

Wendy L
National Instruments
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 3 of 3
(4,076 Views)