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.
Fraser_AdminAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SpeedFingolfCommented:
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.
0
Fraser_AdminAuthor Commented:
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!!
0
23637269Commented:
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
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

Fraser_AdminAuthor Commented:
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.
0
Fraser_AdminAuthor Commented:
how do i check this?
0
23637269Commented:
Go to your printer object, Right click and go into properties.
You will find the option for RAW there.

Also check to see if there are any updates or issues with your current printer driver.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Fraser_AdminAuthor Commented:
ok thanks i will try and let you know.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.