Intermec paper fault

I am trying to send a txt file to an Intermec PM4i label printer that takes RAW data and prints out labels. I have loaded the driver and have set up the printer on the machine. I can go into Printers and Faxes select the printer and go into the properties and send a file to the printer and it will print out the labels. So I know it works. But when I run this code it starts off with a dialog box asking for the txt file. Once file is chosen another dialog box opens where you chose the printer. All that seems to work correctly. But when the code goes into the SendBytesToPrinter() Function and gets to OpenPrinter((), hPrinter, ) the () has the correct printer name. hPrinter and both has values of Zero. From this line it goes directly to If bSuccess = False Then dwError = () End If And () has a value of 87. And that’s it and nothing is printed. Please let me know what is going on? Thank you

Intermec paper fault

intermec paper fault

Media:

intermec paper faultintermec paper faultintermec paper faultintermec paper fault