以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  求助!如何使条形码生成的图片上面为数据内容下面位条形码,如附件示图  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=57412)

--  作者:divil
--  发布时间:2014/9/24 12:16:00
--  求助!如何使条形码生成的图片上面为数据内容下面位条形码,如附件示图
版主,求教,如附件中示意图所示,目前使用狐表的条形码功能只能显示上面是条形码下面是对应的数据内容,能否实现附件这样的!谢谢!
--  作者:czy
--  发布时间:2014/9/24 12:53:00
--  

看不到你的附件

是不是不想显示下面的数字?

 

 


--  作者:czy
--  发布时间:2014/9/24 12:53:00
--  

不显示下面的数字

 

Dim doc As New PrintDoc
Dim rbc As New prt.RenderBarCode()
rbc.Height = 25
rbc.BarCodeType = BarCodeEnum.Code39
rbc.BarDirection = BarDirectionEnum.Normal
rbc.Text = "123456"
rbc.ShowText = False
doc.Body.Children.Add(rbc)
Doc.Preview()


--  作者:divil
--  发布时间:2014/9/24 13:01:00
--  
If e.Book.TempLate = "滤波器终检FQC检验清单" Then
    If e.region = "滤波器订单执行统计表" Then
        If e.DataRow Is Nothing OrElse e.DataRow.IsNull("晨信工单") Then \'如果是空行或者Lot列为空
            Dim img As New System.Drawing.Bitmap(1,1) \'生成一个空白图片
            img.Save(ProjectPath & "Images\\BarCode3.gif")
        Else \'否则生成条形码图片
            Dim Bar As New BarCodeBuilder
            Bar.Symbology = Barpro.Symbology.Code128
            Bar.Code = e.DataRow("晨信工单")
            Bar.BarRatio = 0.3
            Bar.BarHeight = 8
            bar.SaveImage(ProjectPath & "Images\\BarCode3.gif",300)
        End If
    End If
End If
上面是原始报表事件中的内容!请问如何修改?

--  作者:czy
--  发布时间:2014/9/24 13:08:00
--  
If e.Book.TempLate = "滤波器终检FQC检验清单" Then
    If e.region = "滤波器订单执行统计表" Then
        If e.DataRow Is Nothing OrElse e.DataRow.IsNull("晨信工单") Then \'如果是空行或者Lot列为空
            Dim img As New System.Drawing.Bitmap(1,1) \'生成一个空白图片
            img.Save(ProjectPath & "Images\\BarCode3.gif")
        Else \'否则生成条形码图片
            Dim Bar As New BarCodeBuilder
            Bar.Symbology = Barpro.Symbology.Code128
            Bar.Code = e.DataRow("晨信工单")
            Bar.BarRatio = 0.3
            Bar.BarHeight = 8
            Bar.DisplayCode = False
            bar.SaveImage(ProjectPath & "Images\\BarCode3.gif",300)
        End If
    End If
End If

--  作者:divil
--  发布时间:2014/9/24 13:18:00
--  
谢谢!问题解决了!