LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Printing to two identical Printers

Hello,

 

I am currently using LabWindows to write a program which automates a printing process. 

 

I have two Argox CP-3140L printers. One printer prints labels and the other prints barcodes, so in my program each printer gets sent a text file containing the template to be printed. For this reason, it is important that my program knows which printer is which in order to send the correct template.

 

The problem I am running into is distinguishing the printers. I am using a API library, and there are only two functions I can use to extract information from the printers, but there is nothing unique that is being pulled to be able to distinguish the two.

 

Has anyone ran into any issues like this before? 

 

Thanks!

 

 

0 Kudos
Message 1 of 3
(2,104 Views)

You can query the location and the comment of the printer with the PRINTER_INFO_1 struct from the Print Spooler API.

Maybe that will suffice.

-----------------------
/* Nothing past this point should fail if the code is working as intended */
0 Kudos
Message 2 of 3
(2,073 Views)

Thanks for your response, I will give that a try.

0 Kudos
Message 3 of 3
(2,062 Views)