Dynamically change portrait / landscape orientation of crystal report in C #

How to change the orientation of a crystal report in C # to landscape orientation? I am using a crystal report in portrait orientation.

+7
source share
5 answers

You can check it out

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

+16
source

Crystal Reports uses the current printer settings. Modify them and your report will change to match.

So, to change the orientation of the report in landscape mode:

  • File → Printer Setup.

  • In the "Orientation" section, select "Landscape."

+6
source

To change the orientation in landscape mode, you need to go to Crystal Reports-> Design-> Printer Setup

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

+2
source

To dynamically change the orientation of a crystal report Follow the next 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 a crystal report in LandScape mode.

0
source

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

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

I hope this helps you.

0
source

All Articles