我使用Zebra CPCL打印机打印文本和图像(.bmp)。我使用Zebra SDK的方法PrintImage for C#来打印图形,但问题是它在图像之前不断添加一些空格。我设法通过使用SETFF消除打印图像后的空白,但有没有办法在图像之前消除空白?
zebraTU.SendCommand("! U1 setvar \"device.languages\" \"line_print\"" + NL);
zebraTU.SendCommand("! U1 setvar \"media.tof\" \"0\"");
zebraTU.SendCommand("! U1 PAGE-WIDTH " + pagewidth + NL);
ZebraPrintText(0, 2, 18, "After this line there is a white space");
zebraTU.SendCommand("! UTILITIES" + NL + "IN-MILLIMETERS" + NL + "SETFF 0 0" + NL + "PRINT" + NL);
ZebraPrintImage("file.bmp", 0, 0, pagewidth, -1);