Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am using a Windows XP machine and I'm printing to a Zebra Printer using the "Generic / Text Only" driver.

I have a printer setup, in the Windows, Printers and Faxes area. It is called "Generic / Text Only", and is driven by the generic text driver. All the settings are set to default, except for the port. I have it set to a Standard TCP/IP Port with the IP of the printer.

I'm able to ping and print to the printer just fine. Unless, I change the name of the printer in anyway. If I change the name and then try to print, the formatting gets thrown off. It will either insert random blank spaces within the text or only prints within a 1 inch area. Printing characters over top of each other.

I have 3 different Zebra printers I would like to setup on my PC and have each named accordingly for ease of selection. Instead of having to go in and updated the IP each time. I even tried setting up a new printer and just using the default name supplied by the Print Wizard, "Generic / Text only (Copy 1)", and I still got the incorrect format.

Has this been seen by anyone else? Is it a driver bug that has been resolved and can be fixed with an update? Any suggestions?

share|improve this question

migrated from stackoverflow.com Mar 10 '11 at 19:37

This question came from our site for professional and enthusiast programmers.

    
What model Zebra printer are you using? Have you tried the Zebra drivers? zebra.com/id/zebra/na/en/index/drivers_downloads.html –  Ovi Tisler Mar 10 '11 at 19:33
add comment

1 Answer

up vote 1 down vote accepted

The generic text driver adds line feeds and other control characters into the stream. OTisler has the right idea to use the Zebra driver. Use that driver with the WritePrinter API. That API will send the data unchanged to the printer.

share|improve this answer
    
Thanks that worked. I'm taking over an old project, and the previous programmer used the generic driver. It worked well for the most part, would go out of alignment every so often. The issue I'm coming accross now is getting the printer to convert the ID to a barcode. –  Nathan H. Mar 14 '11 at 20:16
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.