Hello,
I design with Zdesigner.
- After printing the barcode label, it produces 7 more blank labels in sequence. 7. Remove the label halfway, and the red error light is flashing.
- If I output a label with a RAW TXT file from ZDesign, it outputs 2 labels.
- By doing C# coding, the label output in RAW format comes out as 1 piece properly.
- If I output labels with DevExpress design by doing C# coding. Again, it produces 1 full (first label output) and 7 empty labels.
I have manually calibrated several times. I have also calibrated multiple times with the Zebra Utility application. Please provide some context that shows me the correct method. There is no video about ZD220t on Youtube channel.
Please watch video:
https://drive.google.com/file/d/17vhBVg7zvvFEI3s8R1x5sOYKevKQPH7x/view?usp=share_link
My label:
100x100mm
left and right 1mm
top between 3mm
C# RAW SOURCECODE:
string s =
"^XA" +
"^FO50,250" +
"^A0N50,50" +
"^FDModel: BM3-1A^FS" +
//"^XZ" +
//"^XA" +
"^LH50,30" +
"^FO50,300" +
//"^ADN,90,50" +
"^AD" +
"^FD(C) 2023 Bridge Systems BV^FS" +
"^XZ";
PrintDialog pd = new PrintDialog();
pd.PrinterSettings = new PrinterSettings();
RawPrinterHelper.SendStringToPrinter(pd.PrinterSettings.PrinterName, s);
C# DEVEXPRESS REPORT SOURCECODE:
private void XtraReport1_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
{
//this.Detail.Controls.Add(CreateCode128BarCode(_BarCodeText_));
xrBarCode1 = CreateCode128BarCode(_BarCodeText_);// _BarCodeText_;
//BarCodeControl barCodeControl1 = new BarCodeControl();
////barCodeControl1.Parent = Parent;
//barCodeControl1.Size = new System.Drawing.Size(150, 150);
//barCodeControl1.AutoModule = true;
//barCodeControl1.Text = _BarCodeText_;
QRCodeGenerator symb = new QRCodeGenerator();
//barCodeControl1.Symbology = symb;
// Adjust the QR barcode's specific properties.
symb.CompactionMode = QRCodeCompactionMode.AlphaNumeric;
symb.ErrorCorrectionLevel = QRCodeErrorCorrectionLevel.H;
symb.Version = QRCodeVersion.AutoVersion;
xrBarCode2.Symbology = symb;
}
public XRBarCode CreateCode128BarCode(string BarCodeText)
{
// Create a bar code control.
XRBarCode barCode = new XRBarCode();
// Set the bar code's type to Code 128.
barCode.Symbology = new Code128Generator();
// Adjust the bar code's main properties.
barCode.Text = BarCodeText;
//barCode.Width = 400;
//barCode.Height = 100;
// Adjust the properties specific to the bar code type.
((Code128Generator)barCode.Symbology).CharacterSet = DevExpress.XtraPrinting.BarCode.Code128Charset.CharsetB;
return barCode;
}
4 Replies
I'm pretty sure my printer doesn't understand the size of the label I'm using. Because when I want to get two outputs, it outputs 2 blank labels between the two labels and writes the second copy on the 3rd label. I have no idea how to define the tag I have used to my device.
I tried adding all the parameters one by one. The code that outputs 7 blank pages is ^MNW. I was able to output a single label by subtracting this parameter.
When I searched ^MNW in the "ZPLII-Prog.pdf" document, I couldn't find any results. I encountered this issue in the latest version of ZebraDesinger for Developer.
There might be two issues here. Make sure the printer is calibrated properly. You can use the ~JC (a ZPL command) to calibrate the printer. Then make sure the label size used in the ZebraDesigner does not exceed the size of the actual label, especially the length. You can ignore the width. When printing from the ZebraDesigner, ideally, select the "Let the printer control this option" for all options, to prevent the ZebraDesigner from interfering with the media settings and calibration on the printer. Just right click on each green squares.
The ^MNW is on the ZPL User's Guide. Check out this - ^MNW.