how to manage page size and margin in crystal report?

半城伤御伤魂 提交于 2019-12-17 20:51:18

问题


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.


回答1:


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.


Here you can edit the page size and margins...

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




For Margins Open Page Setup



Hope this helps !!




回答2:


And to change them programmatically:

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


来源:https://stackoverflow.com/questions/12360581/how-to-manage-page-size-and-margin-in-crystal-report

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!