Dim
doc As New PrintDoc
Dim rbc As New prt.RenderBarCode()
rbc.Width = 60
rbc.Height = 20
rbc.BarCodeType = BarCodeEnum.Code39
rbc.BarDirection = BarDirectionEnum.Normal
rbc.Text = "123456"
rbc.ShowText = True
doc.Body.Children.Add(rbc)
Doc.Preview()打印预览效果,直线有阴影,打印出来是点线或波浪费,有的是直线。请老大帮看看,急!!
麻烦老大百忙之中抽点时间尽快处理下,我这要做条码出库,现没有办法打印没有条码的货物,谢谢!!
我试了,这样可以,只是这句是什么意思不清楚,请贺老师指教:Dim rbc As New C1.Win.C1BarCode.C1BarCode
Dim doc As New PrintDoc() '定义一个报表
Doc.PageSetting.LeftMargin = 5
Doc.PageSetting.RightMargin = 3
Doc.PageSetting.TopMargin = 10
Dim rw As row = Tables("窗口1_Table1").current
doc.PageSetting.Width = 80 '纸张宽度为100毫米
doc.PageSetting.Height = 50
doc.PageSetting.Landscape = true '横向打印
Dim rbc As New C1.Win.C1BarCode.C1BarCode
rbc.Width = 60
rbc.Height = 20
rbc.CodeType = BarCodeEnum.Code39
rbc.BarDirection = BarDirectionEnum.Normal
rbc.Text = rw("第一列")
rbc.ShowText = True
Dim rm As New prt.RenderImage '定义一个图片对象
rm.Width = 60
rm.Height = 20
rm.Image = rbc.Image '设置图片
doc.Body.Children.Add(rm) '将图片对象加入报表
Doc.Preview()
[此贴子已经被作者于2009-12-15 10:12:08编辑过]
呵呵,原理就不用管它了。
这是临时性的东西
[此贴子已经被作者于2009-12-15 10:14:23编辑过]
试过,可以打印出来,用采集器试读下,类型为 Code 93 ,而不是 Code 39 ,请教下这两者有何区别?