-- 作者:狐友
-- 发布时间:2011/12/9 9:06:00
-- 请教打印问题
实际纸张是:241 139
第一格表打印不到最右边是怎么回事,
代码如下:
Dim doc As New Printdoc
doc.PageSetting.Width = 241 \'纸张宽度为241毫米 doc.PageSetting.Height = 139 \'纸张高度139 Doc.PageSetting.TopMargin = 8 \'设置上边距 Doc.PageSetting.BottomMargin = 5 \'设置下边距 Doc.pagesetting.LeftMargin = 5 Doc.PageSetting.RightMargin = 0 doc.AutoRotate = False doc.PageSetting.Landscape = True
Dim rt As New prt.RenderTable() \'定义一个表格对象 rt.Cols.Count = 1 \'设置rt行列数 rt.Rows.Count = 1 rt.Height = 20 rt.Style.GridLines.bottom = New prt.Linedef rt.Cols(0).Width = 241 doc.Body.Children.Add(rt)
Dim rt1 As New prt.RenderTable() \'定义一个表格对象 rt1.Cols.Count = 1 \'设置rt行列数 rt1.Rows.Count = 1 rt1.Height = 20 rt1.Style.GridLines.bottom = New prt.Linedef rt1.Cols(0).Width = 214 doc.Body.Children.Add(rt1) Doc.Print() 此主题相关图片如下:1209.jpg
[此贴子已经被作者于2011-12-9 9:09:11编辑过]
|