^DF Download Format
Stores the ZPL commands that follow it, as text, under a name in printer memory, so that ^XF can recall the format later and merge variable data into it.
^DFd:o.x
^DF parameters
| Parameter | Meaning | Accepted values | Default |
|---|---|---|---|
ddevice to store the imagep. 174 |
The drive the format is stored on. |
|
R:
|
oimage namepp. 58, 174 |
The name the format is stored under. The tutorial pages say that a file name on the printer drives may contain only the characters shown in a chart there, and that the command and control prefix characters (normally ^ and ~) cannot be used unless they were changed with^CC or ~CC.
|
1 to 16 alphanumeric characters, with a file type of 1 to 3 alphanumeric characters, separated by a period. |
UNKNOWNUsed when no name is specified. |
xextensionp. 174 |
The file type of the stored format. |
The guide gives .ZPL as the format of the extension. |
Not stated in the guide. |
^DF notes and gotchas
-
Gotcha
p. 174^DFis entered immediately after^XA, and the commands to be saved follow it. The stored text is formatted when it is printed, so a stored format cuts transmission time but saves no formatting time. -
Interaction
A stored format is recalled with
pp. 174, 200, 372^XF, from the same drive and under the same name. Fields that vary are marked with^FNin the stored format, and the recalling format provides their data with^FNand^FD. -
Note
p. 174^DFsaves ZPL II commands as text strings, to be merged with variable data later through^XF. The stored format can contain^FNcommands as markers to fill in on recall. -
Note
The tutorial compares the pair with
p. 57^ISand^IL, and says^ISand^ILprocess faster in the printer than^DFand^XF. -
Note
The guide's example stores a format with numbered text fields in one format and, in a second format, recalls it and supplies data for one of the fields. A worked version with a form layout is Exercise 6 on page 57. A separate command,
pp. 57, 174, 220^HF, returns stored formats to the host (page 220). -
Guide issue
The
pp. 57, 174, 372^DFentry gives the extension as .ZPL, but the tutorial's Exercise 6 stores and recalls its format under a name ending in .GRF with^DFand^XF. The^DFand^XFentries both give .ZPL. -
Guide issue
The
pp. 174, 372^DFentry allows a name of 1 to 16 alphanumeric characters, while the^XFentry allows 1 to 8 for the name of the stored image it recalls. The guide does not explain the difference or say which limit applies to a name that is stored and then recalled.
^DF example
^XA ^DFR:TAG.ZPL^FS ^FO40,40^A0N,30,30^FN1^FS ^FO40,90^A0N,30,30^FN2^FS ^XZ
^DF directly after ^XA stores the rest of the format under the name TAG.ZPL on drive R:. The two text fields are numbered with ^FN and hold no data yet; a later format can recall TAG.ZPL with ^XF and supply data for fields 1 and 2.
Guides that use ^DF
BarcoderX is a .NET SDK for thermal labels and barcodes. See how it prints and exports labels.
Source Zebra, ZPL II, ZBI 2, Set-Get-Do, Mirror, WML Programming Guide, P1134473-11EN Rev A, 2026/07/05, pages 56 to 58, 60, 174, 200, 201, 204, 220, 372.
Written by BarcoderX in its own words. Checked against the guide on 2026-11-14.
ZPL and ZPL II are trademarks of Zebra Technologies Corporation. This reference is written by BarcoderX in its own words from Zebra's published programming guide. BarcoderX is an independent product and is not affiliated with, endorsed by or sponsored by Zebra Technologies.