Discussions:
How to convert a graphic using the Zebra driver Goals: Provide step by step instructions for converting and printing graphics Facts or Affected Items: ZPL II printers Changes: N/A Details If you have problems converting your graphic files that you want to download to a Zebra ZPL Printer with ZTools, this procedure provides an alternate method. In this procedure you will insert your graphic file into Microsoft Word and print it to a file through the Zebra Driver. Then you have to edit the ZPL that was output from the driver. The type of graphic file you can use is not limited to .pcx or .tif files as in ZTools. You should be able to convert any file that will open in Microsoft Word. Important: In order for this to work, you have to use a version of the Zebra driver that supports the Zebra ZPL Printer you intend to upload the graphic to. For ZPL Printers with a version of firmware higher than x.10 you can use the Zebra Universal Driver. For ZPL Printers with firmware versions lower than x.10, use appropriate Windows Driver. The Graphic Conversion Process: 1. Open Microsoft Word. Note: I choose Word because is it very common and easy to work with. There may be other programs that work as well. 2. Select Insert, Picture - From File, then browse to your graphic file and select it to open it in Word. 3. Go to File - Page Set up. Set your Margins, Header, & Footer to 0. Set up your Page Size to be the size you want to graphic to be, not the full size of your label. 4. Before printing, you must set up a local port in the driver to print to a file: I. Go to Start, Settings, Printer. Right click on the Zebra Printer and select properties. II. In Windows NT 4.0, 2000, & XP select the Ports Tab. In Windows 95/98/ME, select the Details Tab. III. Select Add Port. Highlight Local Port and select New Port. IV. In the New Port window, type the full path and name you want file to have, i.e. C:\graphic.txt Use the .txt extension to have file saved as a text file. V. Click OK, until printer's properties is closed. 5. Print your document. 6. Browse to location of your text file and open it 7. Edit the ZPL in the file. It will look something like this:
Remove the ZPL highlighted in Red. The Zebra Universal Driver outputs the ZPL with the ~DY command to download graphic data to printer. The ~DY only allows graphic to be stored in the Printer's DRAM. For more storage options, insert the ~DG command. The file should now look similar to this:
In the above example, the driver output is already using the ~DG
command. For ZPL command reference see the ~DGR:GRAPHIC.GRF,660,30,H07E07HFCH07FEK01F8H03FC01F8I0HFH01IF03FH01F8I0FC01FE0::0 HFE1IFCH07IFJ0HFE07HFC0HFEH0JF07IF0HFC07FEH0HFC1HFE0:0HFE07HFCH07IFI03IF87HFC3I F80JF07IF3IF1IF80HFC1HFE0:3FEH07FC0F07E7FCH03F9F9IFC3F9F87FC3FE7F803F3F1F9F83FC0I FE0:3F801IF3F07E1FCH03IF9IFC3HFE07FH0FE1FE03IF1IF83FH0IFE0:3F801KF07E1FCH03IF9IFC3I F87FH0FE07F83IF1IF83FH0IFE0:3FE07FC3FC07E1FCH03IF9HFH03IF87FC3FE01HF3HFC1IF83FC0 HF8,:0HFE1JFC07E7FI03F9F87HFC3F9F80JF07IF3FH01F9F80HFC1HFE0:0HFE1KF07E7FI03F9F87H FC3F9F80JF07IF3FH01F9F80HFC1HFE0:H07E07HF3FE7E78I03F9F803FC3F9F8H0HFH07HF83FH01 F9F8H0FC01FE0:: NOTE: In these examples I am downloading the graphic to the printers DRAM( R:). If you want this graphic to be downloaded to printer flash memory (E:), PCMCIA memory (B:) or compact flash (A:) then edit the file. Replace the ~DGR: with ~DGE: for flash, ~DGB for PCMCIA, or ~DGA: for compact flash and save. 8. File is now ready to be sent to printer. You can Copy the file directly to the printer's port in DOS. 9. You can create a ZPL script to test the graphic: ^XA^FO50,50^XGR:GRAPHIC.GRF^XZ Notice: Zebra Technologies Corporation makes no representations about the suitability of this documentation for any purpose. It is provided "as is", for your information only, without warranty of any kind, either expressed or implied, including, but not limited to, implied warranties of merchantability, fitness for a particular purpose and non-infringement. |