This is generally a Zebra printer configuration issue. Zebra printers can be set to either continuous mode (for printing receipts) or label mode (for printing labels). Furthermore, when set to label mode, the printer could be looking for a black bar to separate labels OR a gap in between the labels. So, the most important question is: what type of media are you using?
Continuous 'receipt' paper -
If you are using continuous paper, you will want to set the label length of your print job ahead of time. You will also want to indicate that you are using continuous media. You can send these commands to do so:
! U1 setvar "ezpl.media_type" "continuous"
! U1 setvar "zpl.label_length" "500"
Labels with black bars in between -
If you are using black bar labels, you need to send this SGD commands to the printer:
! U1 setvar "ezpl.media_type" "mark"
Labels with gaps in between -
If you are using labels with gaps in between, the following SGD command needs to be sent:
! U1 setvar "ezpl.media_type" "gap/notch"
(Notice the commands above are in ! U1 SGD notation. You can simply use the SDK 'SGD' calls as you see in your code to accomplish the same effect)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…