Crystal Reports 10: The Complete Reference

An OLAP grid organizes cube information in a row-and-column format, much as a cross-tab object does. In fact, formatting and changing OLAP grid appearance is essentially identical to formatting a cross-tab object:

New Version 10 Formatting Options

Crystal Reports deals with OLAP grids that span multiple pages in an inconsistent manner between the Preview tab and what actually is printed or exported from the finished report. If an OLAP grid contains a sufficient number of columns that it exceeds the chosen Crystal Reports page width, it simply expands the Preview tab horizontally and shows the OLAP grid across a single page. However, when you print or export the report, the OLAP grid will actually be broken into multiple pages that print one after the other.

While this behavior hasn t changed in version 10, some new formatting options that make OLAP grids that span pages easier to view have been added. A new formatting option in the Format Editor, as well as a new page number special field, have been added to version 10 to enhance OLAP grid appearance.

The Repeat on Horizontal Pages formatting option now appears on the Format Editor Common tab. You may select this formatting property for virtually all Crystal Reports object types, such as database fields, bitmap graphics, text objects, and so forth. Any object that you apply this formatting option to will repeat on each subsequent page that a OLAP grid object appears on, whether in the Preview tab or on a printed or exported report.

The other new version 10 feature that s helpful with multipage OLAP grids is the Horizontal Page Number special field. Available along with other special fields in the Field Explorer, Horizontal Page Number will increment as OLAP grids span multiple pages, whereas the standard Page Number special field won t. Simply drag and drop the Horizontal Page Number special field onto the report as you would any other field. The page numbers will increment as OLAP grids span pages.

Figure 19-6 illustrates these new features. Notice that the text object title appears on multiple horizontal pages displayed in the Preview tab. Also, notice that the Horizontal Page Number special field automatically increments when the OLAP grid spans multiple pages.

Figure 19-6: Multipage OLAP grid

Категории