Converting HTML to PDF Using LabVIEW

Updated Aug 1, 2019

Reported In

Software

  • LabVIEW

Issue Details

I have a HTML file that I want to convert into a PDF. How can I do this using LabVIEW?
How can I convert a HTML to PDF without changing the formatting?

Solution

HTML files can be opened directly into Microsoft Word. This will ensure that the formatting does not change.

By using the code below, you can temporarily open the HTML file with Microsoft Word and make use of the export to PDF feature.

After the export has been completed, LabVIEW will close Microsoft Word.


 

Additional Information

Note: To use this method, you will need to have access to LabVIEW Report Generation Toolkit and Microsoft Word.

If this stops working or this does not resolve your issue, please contact NI Support.