以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 专业报表条形码居中 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=79106) |
-- 作者:blackzhu -- 发布时间:2015/12/24 13:22:00 -- 专业报表条形码居中 rg = New prt.RenderGraphics Bar = New BarCodeBuilder rt.Cols.Count = 6 \'设置列数 rt.Cells(2,0).SpanCols = 6 Bar.Symbology = Barpro.Symbology.Code39 bar.Code = r("运单编号") Bar.BarHeight = 7 \' Bar.BarWidth = 12 rg = new prt.RenderGraphics bar.DrawOnCanvas(rg.Graphics,0,0,1) rt.Cells(2,0).RenderObject = rg rg.Style.TextAlignHorz = prt.AlignHorzEnum.Center rt.Cells(2,0).Style.TextAlignHorz = prt.AlignHorzEnum.Center 我怎么居中不了?
|
-- 作者:大红袍 -- 发布时间:2015/12/24 14:20:00 -- 居中啊
Dim doc As New PrintDoc \'定义一个报表 Dim rm As New prt.RenderGraphics rm.Style.ImageAlign.AlignHorz = prt.ImageAlignHorzEnum.Center \'图片水平居中 |
-- 作者:blackzhu -- 发布时间:2015/12/24 14:44:00 -- 哦 明白了 |