LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

is it possible to launch another program with Labview ???

( I wanna print a page html with micro$oft IExplorer

Thanks a lot

Answer in english or french please
0 Kudos
Message 1 of 5
(3,043 Views)
If you know how to do this from a command line, the easiest thing is to take that same command and send it to the SystemExec.vi function.

Alternately, you might be able to control the application using ActiveX and have it open and print the document. The only thing is I haven't used IE that much and don't know how much external control you have over it.

Hope this helps

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 5
(3,043 Views)
Razmocket-stagiaire;

You can do that 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.

Regards;
Enrique"
www.vartortech.com
0 Kudos
Message 3 of 5
(3,043 Views)
Find attached example. You can try other properties or methods in order to improve it (this one is just basic).

Good Luck
Message 4 of 5
(3,043 Views)
I used this also. Thanks a lot!!!
0 Kudos
Message 5 of 5
(3,043 Views)