以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助]panel面板打印  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=123763)

--  作者:湛江智
--  发布时间:2018/8/22 15:39:00
--  [求助]panel面板打印
 1、打印panel面板,打印代码的同时,能保存出图片吗?
2、设置成A3横向彩色打印,下面代码怎么修改呢?

Dim t As Table = e.Form.Controls("Table1").Table
For Each c As Col In t.Cols
    t.Cols(c.Name).TextAlign = TextAlignEnum.Center
Next
Dim grp As WinForm.Panel = e.Form.Controls("Panel1")
Dim doc As PrintDoc = e.Form.GernatePrintDoc(grp)
doc.PageSetting.Landscape = True \'横向打印
doc.Preview()
--  作者:有点蓝
--  发布时间:2018/8/22 16:10:00
--  
参考:http://www.foxtable.com/webhelp/scr/2450.htm

doc.SaveImage("c:\\data\\abc.jpg")