Edit: I found a much better solution as I continued to delve into this. This has been pretty significantly edited to focus on the Java applet solution I used.
Basically, you will create a shortcut as raw ZPL text. Then you need to get this plain text on the printer that will generate the label.
If your server can access the IP address of the printer, you can copy the ZPL to the printer directly from the server process. If this is a remote web application, you need to get the client to send the ZPL for you. Browser isolation makes this difficult, so drivers want to help. There are several options; the most common is to use a small Java or Flash applet to actually copy. If you can get a specific web browser that your users use to print on a text printer without adding anything, you can use local printing, but usually the most reliable approach is to use a helper Java applet.
The Java applet I use for this is jZebra: http://code.google.com/p/jzebra/
This is a very clean and easy approach, look at the HTML sample in the download package and type a shortcut in a few lines of code. I just edited a sample and plan to use it as a popup popup. It's really that simple.
Two caveats with this approach:
- Your users must have JRE installed
- jZebra finds a Zebra printer by printer name. There are very specific guides (they have detailed instructions for setting up Mac, Windows, and Linux) for what you need to do, but this is well documented, and you just need your users to follow the instructions. After properly configured, it works great.
source share