LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Printer Status

Solved!
Go to solution

Hello,

 

Does anyone know of the simplest method of checking whether ANY printer is connected to the CPU prior to printing.  If the first request is too involved, what about just checking if a specific port has a printer connection?  I need to do this check (printer connected and turned on) so that the system doesn't hang up (and instead returns an error) when a user attempts to print with no connection.

 

Thanks. 

0 Kudos
Message 1 of 4
(4,337 Views)
Solution
Accepted by topic author jonvanjam
Here is a little vi which lets you choose a printer from a listbox.  It reads the list of available printers using a property node.  Hope this helps.
Message Edited by Darin.K on 07-20-2009 01:46 PM
Message 2 of 4
(4,336 Views)

Hey Darin, thanks for the VI.  I think I'll just check if the PrPrinter reference returns an empty list and use that as my error check. 

0 Kudos
Message 3 of 4
(4,326 Views)

Just to confirm the details a bit here...If there are say two printers available while an executable is running, and then the default printer is powered off/disconnected offline, will LabVIEW automatically set the other printer to default when a printing routine is called? 

 

Anyone?

0 Kudos
Message 4 of 4
(4,291 Views)