以下是新页面设置的代码:
Dim newPageSettings As New PageSettings
newPageSettings.Margins = New Margins(20, 20, 20, 20)
newPageSettings.Landscape = True
Dim paperSize As PaperSize = New PaperSize()
paperSize.RawKind = PaperKind.A4
newPageSettings.PaperSize = paperSize
ReportViewer1.SetPageSettings(newPageSettings)
Me.ReportViewer1.RefreshReport()
在我调试系统后,在 ReportViewer 中点击打印预览,屏幕显示如下:
我真的不知道这是怎么发生的。请帮忙。谢谢。