以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 报表输出时,水印被覆盖 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=139163) |
-- 作者:ljh29206 -- 发布时间:2019/8/7 10:15:00 -- 报表输出时,水印被覆盖 如题 请帮忙看看 该怎么改 才能显示出来
[此贴子已经被作者于2019/8/7 10:15:29编辑过]
|
-- 作者:有点蓝 -- 发布时间:2019/8/7 10:37:00 -- 只能通过绘制 Dim dt As DataTable dt = DataTables("表A") Dim doc As New PrintDoc \'定义一个报表 doc.PageSetting.PaperKind = 9 \'纸张类型改为A4 Doc.PageSetting.LeftMargin = 5 \'设置左边距 Doc.PageSetting.RightMargin = 5 \'设置右边距 Doc.PageSetting.TopMargin = 0 \'设置上边距 Doc.PageSetting.BottomMargin = 5 \'设置下边距 Dim nd As Integer \'Dim P As WinForm.Painter = e.Form.Controls("Painter1") Dim p As New prt.RenderGraphics Dim G As Graphics = P.Graphics g.clear(Color.white) Dim N As New pen(color.blue , 2) Dim fnt As New Font("宋体",10) Dim fnt1 As New Font("宋体",20) g.TranslateTransform(0 , 800 ) g.RotateTransform(-45) g.DrawString("机密文件111111111",New Font("宋体",70),Brushes.Gray ,10,10) g.RotateTransform(45) g.TranslateTransform(0 , -800 ) g.DrawRectangle(n,0,50,150,40) \'-----------追加图片 ……
|
-- 作者:ljh29206 -- 发布时间:2019/8/7 10:44:00 -- 效果不理想! 蓝版,是什么问题导致水印失效的哇?
|
-- 作者:有点蓝 -- 发布时间:2019/8/7 10:56:00 -- 绘制会遮挡底下所有东西 |