改变窗口大小,然后打印,再设置回来
Dim width As Integer = e.Form.baseform.WidthDim height As Integer = e.Form.baseform.Heighte.Form.baseform.Width = 1200e.Form.baseform.height = 1200Dim doc As PrintDoc = e.Form.GernatePrintDoc()doc.Preview() '打印预览e.Form.baseform.Width = widthe.Form.baseform.height = height