You can add a new ZebraDesigner ZPL driver to the system and use a file as the port. Then when you "Print" the document, it will write the ZPL code to the file.
Note that it might have some header information before the first ^XA
which you might not need.
UPDATE : (How to add local port on a driver)
- Go to
Printer Properties
- Click on the
Ports
tab - Click
Add Port
- Select
Local Port
and clickNew port
- Enter a filename e.g.
C:\output.zpl
- Make sure it is checked in the ports list
- Now all printing output should go to
C:\output.zpl