LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to print a .prn file programatically?

I need to print a .prn file after a test successfully completes. The file can be sent to the default printer. Is this possible to do?
0 Kudos
Message 1 of 5
(6,653 Views)
Hi,

What kind of programming language are you using? I tried to do it by calling print command(MS-DOS) in a batch file to print prn file.

Bill
0 Kudos
Message 2 of 5
(6,644 Views)
I wish to print a .prn file on demand using LabVIEW 6.1. After a successful completion of an actuator production test, a label is to be printed for the product.
0 Kudos
Message 3 of 5
(6,632 Views)
You could use a system exec command (found in the Communications pallette). Just pass the command and the filename to this command.
Message 4 of 5
(6,612 Views)
Hello CoryJCI,

This can be accomplished by using the System Exec VI with the print command. Attached is an example of how this may be accomplished.

You may also find this article of interest in printing with network printers through MS-DOS based commands.

How to print to a network printer from an MS-DOS-based program in Windows XP

Regards,

Matt F
0 Kudos
Message 5 of 5
(6,610 Views)