如何将c#中水晶报告的方向更改为横向?我正在纵向使用水晶报告。
你可以检查一下
右击--->设计--->页面设置--->方向---> LandScape格式。
Crystal Reports使用您当前的打印机设置。更改这些,您的报告将更改为匹配。
因此,要将报告的方向更改为横向视图:
要将方向更改为横向模式,您需要转到Crystal Reports-> Design-> Printer Setup
然后根据需要将方向更改为横向或纵向。
要动态更改水晶报告的方向,请执行以下步骤:
1. Copy Crystal Report and past in same project,Rename it.
2. Now Right click on New Crystal Report > Design>Page SetUp > Orientation > LandScape ,that is set new new crystal report Orientation as LandScape
3. Last step is to Load new crystal report to ReportDocument at runtime
它将在LandScape模式下显示水晶报告。
如果你想在运行时这样做,这将有助于你:
reportDocument1.PrintOptions.PaperOrientation = PaperOrientation.Landscape;
CrystalReportViewer1.ReportSource = reportDocument1;
我希望这能帮到您。