LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Printing a HTML dokument ?

Hi!

How do i print a HTML dokument from Labview witout opening Microsoft
Explorer ?

BR Per
0 Kudos
Message 1 of 3
(1,453 Views)
Unless you just want to print the HTML tags, you're going to have to use a browser. See the recent posting at http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5065000000080000004D3A0000&USEARCHCONTEXT_CATEGORY_0=_49_%24_6_&USEARCHCONTEXT_CATEGORY_S=0&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0.
0 Kudos
Message 2 of 3
(1,453 Views)
mxller;

You might be able to do so using "System Exec.vi". The following may vary from computer to computer:

You need to send "System Exec.vi" the following command:

rundll32.exe C:\winnt\System32\mshtml.dll,PrintHTML "C:\path\to\file.html"

This work in a machine with Windows NT. I don't know about Windows 9x/ME/2000 etc. Always check for the correct path for your computer. Unfortunatelly, when I test this, it opens the print dialog instead of just printing the file.

With Netscape it can be easier. The command is something like:

C:\PROGRA~1\NETSCAPE\COMMUN~1\PROGRAM\NETSCAPE.EXE /print("C:\path\to\file.html")

Again, check the path. I tested and in my case it send the file directly to the default printer.

If I find out something else, I'll p
ost it here. Let me know if this work.

Regards;
Enrique
www.vartortech.com
Message 3 of 3
(1,453 Views)