02-27-2010 06:51 PM
Okay , i tried to print a picture using LabView , 1st i didit using HP Deskjet D1663 , and it gave me error " Invalid printer name " , so i added Query Printers.vi , extracted the printer from there as a default printer and connected to print report terminal and it gave me error " Object OX4BE00004 is not valid "
I thought maybe its the printer problem , though its new , i changed the default printer to an HP laserjet 1020 , and it actually printed but a bunch of weird codes and dollar signs and euros also , etc i wish i could scan it.
code is attached .
So any clue ?
Solved! Go to Solution.
02-27-2010 08:31 PM
Why are you using "Append File to Report"? It's context help says "appends text from text file to report". But you don't have a text file. You have a binary file of an image. That is why you are getting crazy characters when it prints.
I think you want to use Append Image to Report.
02-28-2010 12:30 PM
Now it prints on the laserjet , but i am still getting the error "Invalid printer name" Error 41002 while using the deskjet , i looked through nearly the whole forums and i could not find valuable help .
is it possible to send the printing command to specific USB port rather than mentioning the Printer name ?
02-28-2010 02:04 PM
02-28-2010 04:46 PM
02-28-2010 05:44 PM
03-01-2010 06:50 AM - edited 03-01-2010 06:52 AM
why not debug step by step?
You have bad programming habit. For your original one, which block will be executed firstly?
Please see the solution.
you can set your pdf printer as defaut printer when you generate pdf report.
03-05-2010 08:38 AM
Sorry for being late , had troubles with internet connection , The PDF thing worked .
thanks also for the advice of structuring the code , life is now easier .
For Ravens Fan , Changing the printer name did not work , i believe its something in the driver , as it is some sort of global driver "Deskjet 1600 SERIES" , it also can be done if one got specific driver for the printer .