LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid printer name error (-41002)

I found the reason for 'Invalid printer name ' error. 

The Pint report.vi out  'Invalid printer name ' error  for all errors not just for invalid name.

HP printers out error if margins are wrong and it is a reason that the  'Invalid printer name ' error  is apearing during the print report.vi.

The Labview margins default is 1 and in European computers the default measurement system is metric(cm). The HP printers out error while 1cm margins are set. To solve the problem increase the margins value or set measurement system to US (inches). It solved printing problem with HP printer in my application.

Message 11 of 12
(1,385 Views)

Thanks Mr. Alex,

 

That is a great piece of information. I had problem with the Microsoft XPS writer used as a printer. When I changed the margins, it worked fine. Thanks.

 

U Karthik,

Servo Hydraulic Systems.

www.servohydraulics.co.in

0 Kudos
Message 12 of 12
(979 Views)