以下是新页面设置的代码:
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中的“打印预览”后,屏幕显示如下:
我真的不知道这是怎么发生的。请帮忙。感谢。