If you just want to try out a text editor and print from a generic text driver, try typing just this "~WC" without quotes and printing the file. It should print a label (or several) showing the high level print settings of the printer. If it does not, you may need to look again at that driver to how you set it up. Let me know and I should be able to walk you through it in more depth.
Can I ask, If you are programming in PHP, why are you connecting to a printer via USB? I would think if you were writing server software, you would be connecting over a network? More my curiosity than anything, but most of the sample code we have for Windows to USB printers is .NET based because that's what most of our developers are asking for.
Robin, thank you so much for the reply!
Firstly - yes, using PHP to do this is a little odd. Unfortunately, the application I will be inserting this functionality into is a PHP page - and the various users have printers installed locally.
I'm not hung up on the generic/text thing, it is just the recommended starting point I was given.
What I've tried so far:
- Set up printer with Windows generic/text driver
- Set up printer with Zebra ZP series 200 dpi driver (not sure about this one for a ZP450)
- Attempted to print from a program
- Attempted to print form Notepad (using your ~W suggestion)
In all cases, I am viewing the print queue during attempt.
I see the brief presence of the document, but it then disappears without printing.
I feel as though I am just setting up the printer inappropriately, and if I can get any printing to occur - I will have a better chance to develop the code to send the ZPL string to the printer.
I have the UPS label string decoded and ready to print, and have verified the contents via Labelary online.
The Zebra disk I have has the following drivers available:
Eltron LP2348, LP2844, TLP2044,
UPS Thermal 2442, 2542, 2543, 2844,
Zebra 140XiIII, R110XiIII, S4MDT-200, Z4MplusDT, ZM400DT, ZP Series, ZP455(EPL), S4M-203dpi EPL
Again - it is unfortunate that I cannot do this in a .net environment, but such is the challenge.
Thanks again for any advice Robin!
Sorry; ~WC not ~W
I've just came across the same challenge. I am trying to find a way how to pass UPS API response directly to Zebra printer, which is connected via USB to Win 8. And I need to go there on php boat So I am wondering if you managed to find solution?