e.Form.Page.Width = 212 '纸张宽度为100毫米e.Form.Page.Height = 140 '纸张高度为120毫米e.Form.Page.LeftMargin = 3e.Form.Page.Landscape = True '横向打印Dim doc As PrintDoc = e.Form.GernatePrintDoc()Doc.PageFooter = rtdoc.AutoRotate = False '禁止自动旋转打印内容
doc.Print() 直接打印的话 怎么设置都是A4纸doc.Preview() 用预览 不管上面设置是横向 还是禁止旋转 都不能按照212*140大小 打印 而是竖着在A4大小上打印