Hi Bryan, This is standard functionality with ZPL printing. You do need to know or calculate the label length when printing with ZPL in Continuous/Receipt mode. You can add the label length in the document itself (^LL command). ZPL is much more designed for label printing than receipts.
You have two options if this won't work for your use case,
- You can create your document line by line. Each line would start with a ^XA and end with ^XZ. The print length would be just greater than the text, image, or barcode height of that line.
- You can switch to CPCL which handles variable length documents better. Beware if you intend to ever need to use international text. CPCL does not handle internationalization well.
Hope this helps clarify.