[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1423
  • Last Modified:

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.
0
Fraser_Admin
Asked:
Fraser_Admin
  • 4
  • 2
1 Solution
 
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 new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
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
 
Fraser_AdminAuthor Commented:
ok thanks i will try and let you know.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now