How to manage page size and margin in crystal report?

I am new to crystal reporting and using crystal reporting with .Net (WinForm / Visual Studio 2010).

I thought what would be the way to adjust the page size and the top, bottom, left and right margins in the report. I tried to look at the options, but could not get it. Please guide me.

+4
source share
2 answers

If you use Crystal Reports to design your report, you can edit the page size and margins using the Page Setup option. Right-click in your report, select Page Setup . You will get a window as shown below.

Page Setup in Crystal Report
Here you can edit the page size and margins ...

If you are using VS2010 to create a report, follow these steps

Printer Setup
enter image description here

To set up an open page page

enter image description here

Hope this helps!

+14
source

And change them programmatically:

yourReportObject.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.PaperA4; yourReportObject.PrintOptions.ApplyPageMargins(new CrystalDecisions.Shared.PageMargins(0, 0, 0, 0)); 
+6
source

Source: https://habr.com/ru/post/1433480/


All Articles