Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to manage page size and margin in crystal report?

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

I was thinking what would be the way to setup page size and top, bottom, left and right margins in report. I tried to look options but couldn't get it. Please guide me.

like image 550
haansi Avatar asked Sep 10 '12 22:09

haansi


People also ask

How do I change the paper size in Crystal Reports?

Launch Crystal Reports, and select the report. Click File > Printer Setup > Properties. Click Custom, and then click the Custom button. Enter the custom height and width of the paper.

How do I change the width and height of an image in Crystal Report?

You need to check Can grow and, in the Image tab, set the size exactly like the object box's size. You also have to set the bitmap image size (right-click on the box, choose Bitmap Image Object then Modify) to the image limits (500x500).


2 Answers

If you use Crystal Reports to design your report, Page size and Margins can be edited by Page Setup. Right Click on your report select Page Setup. You'll get a window as shown below.

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

If you use VS2010 to design your report, follow the below steps

Printer Setup
enter image description here

For Margins Open Page Setup

enter image description here

Hope this helps !!

like image 81
Hariharan Anbazhagan Avatar answered Oct 14 '22 11:10

Hariharan Anbazhagan


And to change them programmatically:

        yourReportObject.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.PaperA4;
        yourReportObject.PrintOptions.ApplyPageMargins(new CrystalDecisions.Shared.PageMargins(0, 0, 0, 0));
like image 24
Masood Khaari Avatar answered Oct 14 '22 11:10

Masood Khaari