使用C#探针将标签打印到2844斑马打印机 [英] Label printing to 2844 zebra printer with C# probelm
问题描述
我在使用斑马打印机打印标签时遇到问题.在代码中,我将打印模式设置为横向.文本在23个字符后被截断.
有没有一种方法可以增加标签上文本的长度.我正在通过指定leftMargin和ypos使用Graphics.Drawstring.当我尝试指定
Graphics.DrawString方法的可打印矩形区域,文本完全消失.您可以提供任何代码示例吗?什么是
我应该用来打印到的尺寸斑马打印机?任何反馈将不胜感激.设置正确的边距不起作用.
非常感谢,
knowit2012@gmail.com
设置OriginAtMargins = true,保证金(0,0,0,0) 并在PrintableArea中打印. /blockquote>
Hi,
I have a problem printing lables to zebra printer. In the code I have set the print mode to landscape. The text getting cutoff after 23 characters.
Is there a way I can increase the length of the text on the label. I am using Graphics.Drawstring by specifying leftMargin and ypos. When I try to specify
the printable rectangle area to the Graphics.DrawString method the text totally disappears. Are there any code examples you can provide? What are the
dimensions I shoul use to print to zebra printer? Any feedback would be much appreciated. Setting the right margin did not work.
Many thanks,
knowit2012@gmail.com
解决方案Set OriginAtMargins = true, Margins(0,0,0,0) and print within the PrintableArea.
这篇关于使用C#探针将标签打印到2844斑马打印机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!