Fraser_Admin
asked on
Printing to thermal printer in vb6
which is the perfered method to print to a thermal printer in vb6: printer object or api call. i'm currently using the printer object and occaisonally have problems with it jamming up, or just stopping printing. but on a large xerox machine with 8.5x11 paper no problems at all. any advise on the best way to print here.
ASKER
i'm sending a barcode and several lines of text. I'm using the printer object, but i seem to have speradic problems with the printer jamming or just stopping printing. There should be no special codes in it. I have had this problem before i started sending a barcode, so it happens with just text too. Also i have tried several models of thermal printers all having the same outcome. i have tried a large xerox printer no problems at all!!
Check the printer object and make sure that it is set to RAW format.
If you create a test program and generate test print pages, do you still have the same problem?
How much of a margin do you allow on the printjobs?
Thanks
Roger
If you create a test program and generate test print pages, do you still have the same problem?
How much of a margin do you allow on the printjobs?
Thanks
Roger
ASKER
how do i set it to raw format?
i am not setting margins. it seems to be printing just fine with the defaults. the only thing i do is determine how many char should fit on a line based on the type of printer.
i am not setting margins. it seems to be printing just fine with the defaults. the only thing i do is determine how many char should fit on a line based on the type of printer.
ASKER
how do i check this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok thanks i will try and let you know.
As a second option or if you are not using a tool like that, I'd try to know if there is an available OCX for that printer provided by its manufacturer (Internet, installation CDs are a good starting point for searching for it).
My third option, would be to use APIs ONLY if the printer provides them.
Finally, I'd use the printer object.
I'd like to remark that the PRINTING METHOD OF THE PRINTER (inkjet, laser, thermal) has no relation with the way you send information to the printer.
Hope this helps.
Regards.