Some courses and learning paths on NI Learning Center may not appear on learner dashboards. Our team is actively investigating.

If you encounter access issues, please contact services@ni.com and include the learner’s name, email, service ID or EA number, and the list of required courses.

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,516 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,507 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,495 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,475 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,473 Views)