^XF Recall Format

Images, graphics and stored formats ZPL caret command

Recalls a format stored with ^DF so that it is merged with variable data supplied through ^FN fields in the calling format.

Format ^XFd:o.x

^XF parameters

Parameters of ^XF
ParameterMeaningAccepted valuesDefault
dsource device of stored imagep. 372

The drive to recall the stored format from.

  • R:drive R:
  • E:drive E:
  • B:drive B:
  • A:drive A:

A search in the order R:, E:, B:, A:.

oname of stored imagep. 372

The name the format was stored under.

1 to 8 alphanumeric characters.

UNKNOWN

Used when no name is specified.

xextensionp. 372

The file type of the stored format.

  • .ZPLstored format

The guide gives .ZPL as a fixed value.

.ZPL

Fixed value.

^XF notes and gotchas

  • Gotcha

    To merge data with ^FN fields, the calling format must contain the ^FN commands. The data of a field is given in the calling format with ^FN and ^FD.

    pp. 200, 372
  • Note

    More than one ^XF can appear in a format, and they can sit anywhere within the code.

    p. 372
  • Note

    The recalled format was saved as text strings, so it has to be formatted at print time. Using a stored format reduces transmission time, but the guide says no formatting time is saved.

    pp. 174, 372
  • Note

    In the guide's own example a recall is a short format of its own: ^XF followed by the ^FN and ^FD pairs that provide the data. A longer example, Exercise 6 on page 57, pairs a stored form layout with a recall that fills five numbered fields.

    pp. 57, 174
  • Note

    The tutorial says the ^IS and ^IL pair, which saves and loads a whole-label image, processes faster in the printer than ^DF with ^XF.

    p. 57
Where the guide contradicts itself (3)
  • Guide issue

    The ^XF entry allows the name of the stored image to be 1 to 8 alphanumeric characters, while the ^DF entry allows a stored name of 1 to 16 characters plus an extension of 1 to 3. The guide does not say which limit applies to a name that is stored and then recalled.

    pp. 174, 372
  • Guide issue

    The ^XF entry gives the extension as the fixed value .ZPL. The tutorial's Exercise 6 stores and recalls its format under a name ending in .GRF with ^DF and ^XF.

    pp. 57, 372
  • Guide issue

    The x parameter is titled 'extension l' in the printed entry, with the fixed value .ZPL; the guide gives no meaning for the trailing l, and the record treats it as a stray character.

    p. 372

^XF example

example.zplZPL
^XA
^XFR:TAG.ZPL^FS
^FN1^FDWasher 6 mm^FS
^FN2^FD1800 pcs^FS
^XZ

Recalls the format stored as TAG.ZPL on drive R:, then supplies data for its numbered fields 1 and 2 with ^FN and ^FD. It assumes a format of that name was stored earlier with ^DF.

Guides that use ^XF

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 57, 174, 200, 204, 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.