Bixolon Opos驱动程序的printbarcode方法将MAPMODE设置为公制(0.01mm)未按预期打印
我有两个不同的bixolon POS打印机SRP-350Plus和SRP-S300。打印机头密度分别为180 dpi和203 dpi。
当给出长度大于650个字符的QRCODE数据时,350plus的打印QR图像边界穿过打印机纸(80mm),但S300几乎无法正确打印它。为了解决这个问题,我发现我们可以将MapMode属性更改为4(ptr_mm_metric -0.01 mm),以便将作为printbarcode的参数赋予的宽度以0.01 mm的单位进行考虑。
因此,我给出了宽度为5000(50毫米?)。没有打印机打印QRCODE。我将宽度更改为1000,它们能够打印。为什么5000是无效的参数?
另一个问题是打印的QR图像没有宽度10mm。实际上,具有不同宽度的不同长度数据的不同QRCODE被打印出来。我希望它们至少具有几乎相同的宽度。
我已经浏览了Bixolon Opos驱动程序(v5.0.9)手册,但找不到有关PrintBarcode参数或MAPMODE的任何描述。
这是我在C ++中的代码:
SetMapMode(PTR_MM_METRIC);
PrintBarCode(printerType, qrCodeData, PTR_BCS_QRCODE, width, width, PTR_BC_CENTER, PTR_BC_TEXT_NONE);
任何人都可以帮助我了解Bixolon Opos驱动程序和打印机如何解释MAPMODE属性设置为ptr_mm_metric(4)时的宽度?
I have two different BIXOLON POS Printers, SRP-350plus and SRP-S300. Printer Head densities are 180 dpi and 203 dpi respectively.
When a QRCode data of length greater than 650 characters is given, 350plus's printed QR image borders cross the printer paper (80mm) but S300 barely manages to print it properly. To get around this issue, I found out that we can change the MapMode Property to 4 (PTR_MM_METRIC - 0.01 mm) so that width given as parameter to PrintBarCode will be considered in units of 0.01 mm.
So, I gave width as 5000 (50 mm?). None of the printers print the QRCode. I changed width to 1000 and they are able to print. Why was 5000 an invalid parameter?
Another problem is that QR image printed does not have width 10mm. In fact, different QRCodes having different lengths of data get printed with different widths. I expected them to at least have nearly the same width.
I have gone through the BIXOLON OPOS Driver (V5.0.9) manual but could not find any description about PrintBarCode parameters or MapMode.
Here is my code in C++:
SetMapMode(PTR_MM_METRIC);
PrintBarCode(printerType, qrCodeData, PTR_BCS_QRCODE, width, width, PTR_BC_CENTER, PTR_BC_TEXT_NONE);
Can anyone help me in understanding how BIXOLON OPOS driver and printers interpret the width when MapMode property is set to PTR_MM_METRIC(4)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论