Converting HTML to PDF Using LabVIEW

Updated Jul 11, 2023

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 the LabVIEW Report Generation Toolkit and Microsoft Word. The LabVIEW Report Generation Toolkit is included with LabVIEW Professional 2014 and later.