Link to home
Start Free TrialLog in
Avatar of Fraser_Admin
Fraser_AdminFlag for Canada

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.
Avatar of SpeedFingolf
SpeedFingolf
Flag of Sweden image

I don't know what you are printing but if it is a report, I'd like to know if you are using a report tool such as Crystal Reports. In that case, you shouldn't be worried about the printing method, CR would take care of it.

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.
Avatar of Fraser_Admin

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
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.
how do i check this?
ASKER CERTIFIED SOLUTION
Avatar of 23637269
23637269
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ok thanks i will try and let you know.