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: 

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
(4,897 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
(4,888 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
(4,876 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
(4,856 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
(4,854 Views)