简体   繁体   中英

Set Page Setup properties into ReportViewer

如何在 vb2012 应用程序中使用 vb2012 代码在 ReportViewer 中设置页面设​​置属性:方向、报表边距谢谢您的帮助

You can create a PageSettings object , set the properties of that to landscape A4 paper size, and assign that to the Report Viewer instance.

Here you go :

    Dim ps As New System.Drawing.Printing.PageSettings()
    ps.Landscape = True
    ps.PaperSize = New System.Drawing.Printing.PaperSize("A4", 827, 1170)
    ReportViewer1.SetPageSettings(ps)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM