Removing the ^DF command

Removing the ^DF command

In some cases, you might have been using files that contain the
^DF
command. The purpose of the
^DF
command is to instruct the printer to store everything that comes after it in a ZPL file. For example, you might have a file that contains the following:
^XA ^DFE:STOREFMT.ZPL^FS ^FO25,25^AD,36,20^FN1^FS ^FO165,25^AD,36,20^FN2^FS ^FO25,75^AB,22,14^FDBUILT BY^FS ^FO25,125^AE,28,15^FN1 ^XZ
The purpose of the above format - when sent to a printer - would be to store a file called "STOREFMT" to the E memory location on the printer. In production, the goal would be to recall and print the "STOREFMT" file using the following ZPL commands:
^XA ^XFE:STOREFMT.ZPL^FS ^FN1^FDZEBRA^FS ^FN2^FDPRINTER^FS ^XZ
When this is done using Mirror, the format being sent to the printer must be altered. The line with the ^DF command must be removed - this is because the Mirror process is taking care of storing the format to the E memory location. In this scenario, the original format would be edited to look like this:
^FO25,25^AD,36,20^FN1^FS ^FO165,25^AD,36,20^FN2^FS ^FO25,75^AB,22,14^FDBUILT BY^FS ^FO25,125^AE,28,15^FN1
The character substitution described above must also be done on the file before it is stored in the ''<update-root>/files'' directory.
The
"recall"
format - using the
^XFE:STOREFMT.ZPL
command - does not need to be altered or edited. It can be used as it was previously.