Configuring Report Page and Margin Properties


With Crystal Reports, page margins can either be set to use specific manually set margin definitions or can be selected to automatically adjust to the report margins. To set your report margins to meet exact specifications, follow these steps:

1.

From the File menu, click Page Setup, and the Page Setup dialog appears as shown in Figure 6.17.

Figure 6.17. The Page Setup dialog is used to specify report margin settings.


2.

Modify the default page margins for your exact requirements.

3.

Click OK to save your changes.

Note

Each of the margin settings is calculated from the paper edge. Consequently, a left margin of .25 inches causes the printing of the report page to start exactly one quarter of an inch in from the left edge of the paper.


As an alternative to specifying exact report margins, you can select the Adjust Automatically check box if you want Crystal Reports to adjust the report's margins automatically when the paper size changes. This option maintains the ratio of the margins to the printable area of the report by enlarging or reducing the left/right and top/bottom margins by the same factor. For example, this setting could ensure that a report designed for a printer that can only print within .5 inches of the paper's edge would maintain the same overall margin ratio when printed on a printer that could print to within .25 inches of the paper's edge.

The Page Setup dialog also enables you to select a printer for your report or specify no printer at all for optimized web viewing. Based on the printer selection, you are able to set different page sizes and either portrait or landscape orientation. New to XI, a preview of the selected paper size is shown at the top of the Page Setup dialog.

Tip

If you decide to select the Adjust Automatically check box margins options for your reports, there are two common issues to be aware of when printing reports (also described in the Crystal Reports Help files):

  • When printing a report in another environment in which the printer's default margins are greater than the report's setting, the report objects on the right side of the report print off the page.

  • When printing a report in another environment in which the printer's default margins are smaller (enabling a larger printing area), the entire report moves to the left side of the page.

As a result, it is recommended that you specify your own report margins. It is encouraged that you do not select the Adjust Automatically check box margins option in the Page Setup dialog to avoid these common problems. It is advisable to set your report margins manually using the Page Setup dialog, even if the margins you want to specify are the same as the default margin settings. This issue becomes especially important when you distribute your reports over the Web and have no idea what type of printer the business user will be using.





Crystal Reports XI(c) Official Guide
Crystal Reports XI Official Guide
ISBN: 0672329174
EAN: 2147483647
Year: N/A
Pages: 365

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net