I've found that I can print raw EPL2 commands to my Zebra 2844 (UPS) from Windows apps like Notepad and WordPad and get a nicely printed label using the Gene开发者_如何学JAVAric / Text driver in XP (couldn't get the actual Zebra drivers to do this much). But for some reason, I can not get it to print from IE8 (which is necessary for my php application). Nor from Firefox for that matter. When I print, the file goes to the printer's queue and quickly disappears. Nothing is printed.
I'm setting the header to Content-type: text/plain in php. But I've also tried loading the text file directly from the Desktop and printing with no luck.
Anyone run into this issue and have a solution? Perhaps there is a nuance in printing from a web browser that I'm not taking into consideration?
What you need is a way to get past the Windows Print layer, try this: http://code.google.com/p/jzebra/
It is a java applet that once you accept the security certificate can access the printer natively
精彩评论