From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

print html file

Hi

I want to print a html file to my printer. I used the print command in combination with cmd.exe but this doesn`t work, I guess because its a networkprinter, but it is the default printer. I also used the VI to print excel files that workd for me, to print xls and txt files but not for html files. So my question how can i open and print a html file in labview.

Thnx
Bart Bakels
Labview CLD , Engineer/Manager

Promedes and DSM
using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
http://www.promedes.nl
0 Kudos
Message 1 of 6
(2,839 Views)
Hi,

I think you need to have the Internet Toolkit for performing the operations related to HTML files. Once you install the toolkit, you can take the help of the VIs from it and can easily work out. Please tell me if its working out or not.

Regards
Sreedhar T
Applications Engineer
AutoTEC Systems.
Regards,
Sreedhar T
0 Kudos
Message 2 of 6
(2,832 Views)
Hi,

I just found that you need a report generation tool kit for performing your operations on HTML files.

bye
Regards,
Sreedhar T
0 Kudos
Message 3 of 6
(2,830 Views)
thnx, but i hsave the report generation toolkit. But there is only a option print a html report, but you need to open that report ref etc. I just wanna print that file. But I solved my problem by using IE Active X commands.

thnx
Bart bakels
Labview CLD , Engineer/Manager

Promedes and DSM
using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
http://www.promedes.nl
0 Kudos
Message 4 of 6
(2,831 Views)
Bart,

Yes, this should not require any toolkit.

Did you use the ExecWB method (attached image)? That's nice because you can suppress any user dialog box by choosing the "don't prompt user" enum, and it can be potentially used with more than just HTML files.

If someone is looking for a simple Windows method that doesn't require IE/ActiveX and works with any document that has a default application to handle it (not just HTML), then take a look at the How Do I Print a File Programmatically From LabVIEW? KnowledgeBase document and try the lvwutil32 printing utility. Its drawback is that it's not easy to suppress the print dialog. But those Windows utilities are good things to be aware of anyway, so it might be worth checking out.

--John
0 Kudos
Message 5 of 6
(2,814 Views)
yes I used the ExecWB. but thnx for your help 😉
Labview CLD , Engineer/Manager

Promedes and DSM
using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
http://www.promedes.nl
0 Kudos
Message 6 of 6
(2,811 Views)