Foxtable(狐表)用户栏目专家坐堂 → 专业报表的二维码为何两侧有白边


  共有2296人关注过本帖平板打印复制链接

主题:专业报表的二维码为何两侧有白边

帅哥哟,离线,有人找我吗?
瑞峰
  1楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:童狐 帖子:205 积分:2097 威望:0 精华:0 注册:2018/10/8 13:32:00
专业报表的二维码为何两侧有白边  发帖心情 Post By:2021/10/16 1:01:00 [只看该作者]


图片点击可在新窗口打开查看此主题相关图片如下:qq.jpg
图片点击可在新窗口打开查看


cell = t.Cells(1,1).Area
Dim rg As prt.RenderGraphics
Dim Bar As New BarCodeBuilder
Bar.Symbology = Barpro.Symbology.QRCode
Bar.Code = lsn
rg = New prt.RenderGraphics

rg.Width = 28
rg.Height = 28
rg.Style.BackColor = Color.Red
rg.Style.Padding.Top = 0.5
rg.Style.Padding.Left = 0.5
rg.Style.Padding.right = 0.5
rg.Style.Padding.Bottom = 0.5

Bar.DrawOnCanvas(rg.Graphics, 0, 0, 1)
cell.Children.Add(rg)

rt = New prt.RenderText()
rt.Style.BackColor = Color.yellow
'rt.Style.TextAlignHorz = prt.AlignHorzEnum.left '水平左对齐
rt.Style.TextAlignHorz = prt.AlignHorzEnum.Center '水平居中
rt.Style.TextAlignVert = prt.AlignVertEnum.Center '垂直居中
rt.Height = 4
rt.Style.Font = New Font("宋体", 9, FontStyle.Bold) '设置字体
rt.Text = sn
cell.Children.Add(rt)


 回到顶部