Qutaiba
Qutaiba

Reputation: 145

Change page orientation using Infragistics

I am trying to change my export pdf orientation (using Infragistics), i used this code :

report = new Report();
section = report.AddSection();
section.PageOrientation = PageOrientation.Landscape;
section.PageMargins.All = 20;

but nothing happened.

can you help, please ?

Upvotes: 0

Views: 128

Answers (1)

wnvko
wnvko

Reputation: 2120

You ned to set page width and height to match the landscape ones. Here the guys from Infragistics shown how to do this. Here is and the code they suggested:

section1.PageSize = New PageSize(Infragistics.Documents.Report.PageSizes.A4.Height, Infragistics.Documents.Report.PageSizes.A4.Width

Upvotes: 1

Related Questions