以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  在项目事件找不出这些代码  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=191712)

--  作者:zhuxinhui
--  发布时间:2024/5/4 18:03:00
--  在项目事件找不出这些代码

项目事件

 

BuildDetail

 

If e.Book.TempLate = "SalesInvoice" Then

    If e.region = "SaleOrderDetail" Then

        If e.DataRow Is Nothing OrElse e.DataRow.IsNull("Lot") Then \'如果是空行或者Lot列为空

            Dim img As New System.Drawing.Bitmap(1,1) \'生成一个空白图片

            img.Save(ProjectPath & "Images\\BarCode.gif")

        Else \'否则生成条形码图片

            Dim Bar As New BarCodeBuilder

            Bar.Symbology = Barpro.Symbology.Code39

            Bar.Code = e.DataRow("Lot")

            Bar.BarRatio = 0.3

            Bar.BarHeight = 8

            bar.SaveImage(ProjectPath & "Images\\BarCode.gif",300)

        End If

    End If

End If



生成二维码项目,这些代码放在哪里,找来找去都找不出来


--  作者:有点蓝
--  发布时间:2024/5/5 20:38:00
--  
http://www.foxtable.com/webhelp/topics/1953.htm