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 click New 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
If you want to see native ZLP codes you must use zebra fonts, if you do not use you will see .GRF codes like below:
and do not understand them. After that hit print than select "print to file". So you can see clear ZLP codes.