在c#中动态更改水晶报告的纵向/横向方向

问题描述 投票:7回答:5

如何将c#中水晶报告的方向更改为横向?我正在纵向使用水晶报告。

c# crystal-reports landscape-portrait
5个回答
16
投票

你可以检查一下

右击--->设计--->页面设置--->方向---> LandScape格式。


6
投票

Crystal Reports使用您当前的打印机设置。更改这些,您的报告将更改为匹配。

因此,要将报告的方向更改为横向视图:

  1. 文件 - >打印机设置。
  2. 在“方向”部分中,选择“横向”。

2
投票

要将方向更改为横向模式,您需要转到Crystal Reports-> Design-> Printer Setup

然后根据需要将方向更改为横向或纵向。


0
投票

要动态更改水晶报告的方向,请执行以下步骤:

 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模式下显示水晶报告。


0
投票

如果你想在运行时这样做,这将有助于你:

reportDocument1.PrintOptions.PaperOrientation = PaperOrientation.Landscape;
CrystalReportViewer1.ReportSource = reportDocument1;

我希望这能帮到您。

© www.soinside.com 2019 - 2024. All rights reserved.