haribansa tuladhar
haribansa tuladhar

Reputation: 71

Dynamically change Portrait / Landscape orientation of crystal report in c#

How can I change the orientation of the crystal report in c# to Landscape orientation? I am using the crystal report in the portrait orientation.

Upvotes: 7

Views: 31309

Answers (5)

Dalmar Yusuf Abdi
Dalmar Yusuf Abdi

Reputation: 1

if you want to do it at runtime, this will help you:

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

I hope this will help you.

Upvotes: 0

Amit
Amit

Reputation: 22076

You may check this

Right click--->Design--->Page SetUp--->Orientation--->LandScape format.

Upvotes: 16

Salim Latif Waigaonkar
Salim Latif Waigaonkar

Reputation: 462

For changing Orientation Of crystal report dynamically Follow following step:

 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

it will display crystal report in LandScape mode.

Upvotes: 0

travis baker
travis baker

Reputation: 53

In order to change the orientation to Landscape mode you need to go to Crystal Reports-> Design-> Printer Setup

Then change the orientation to Landscape or Portrait according to your need.

Upvotes: 2

Cody Gray
Cody Gray

Reputation: 244692

Crystal Reports uses your current printer settings. Change those, and your report changes to match.

So, to change the orientation of your report to landscape view:

  1. File -> Printer Setup.

  2. In the "Orientation" section, choose "Landscape".

Upvotes: 6

Related Questions