C# 打印Code39码 急 高分

来源:百度知道 编辑:UC知道 时间:2024/05/26 15:54:16
我现在用的是一个条码控件打印出来的code39码有20位数字组成,宽度最小为65mm,而我的标签纸只有50mm宽,这个控件无法修改条宽比等属性,请问有其他控件后者方式打印吗?我划线试过,宽度也很大。打印机是Datamax i4208.谢谢急。。
在线等!!!

我有一个相关的代码,就是做条码打印的,如果需要的话联系我,我发给你

Public Sub PrintBarCode(ByVal G As Graphics, ByVal PrintString As String, ByVal DrawFont As Font, ByVal DrawBrush As Brush, ByVal Rect As RectangleF, ByVal StringFormat As StringFormat, ByVal LineWidth As Integer, ByVal PrintChar As Boolean)

'strBarCode - 要打印的条形码字符串
'intXPos, intYPos - 打印条形码的左上角坐标(缺省为(0,0),坐标刻度为:毫米)
'intHeight - 打印高度(缺省为一厘米,坐标刻度为:毫米)
'intLineWidth - 线宽度
'bolPrintText - 是否打印人工识别字符(缺省为true)
'intFontSize - 打印字符字号

Dim intLineWidthScale As Integer = 3

Static strBarTable(39) As String

'初始化条码编码格式表
strBarTable(0) = "0001101000"
strBarTable(1) = "1001000010"
strBarTable(2) = "0011000010"
strBarTable(3) = "1011000000"
strBarTable(4) = "