Cognos Knowledge 005
Cognos Knowledge 005
It is decided that
horizontal pagination will be used so that the report is printed over multiple A4 sheets with
big readable fonts. However, when this report is printed, it is very difficult for the users to
understand how they stitch together horizontally, and when actually a new page starts.
Let's see how to solve this issue using appropriate page numbering.
Getting ready
Open the Sales report with horizontal pagination prepared in the previous recipe.
How to do it...
We want to modify the report that we created in the previous recipe to include page numbers
so that it can be easier for users to work with the report. We can do this by changing the
properties of the report page as we will see in the following steps:
1. Click anywhere on the report page and choose PAGE from the Select Ancestor
Properties pane.
Writing Printable Reports
148
2. Open the Pagination property and check the Enable horizontal page numbering
option as shown in the following screenshot:
3. By default, there will be a Page Number object in Page Footer. If you can't find it,
you can insert a new Page Number object from the toolbox.
4. Select this Page Number object and from its Properties, choose Number Style as
1-a as shown in the following screenshot:
5. Now run the report to see how page numbers appear in the footer. Notice that for the
first page split over multiple sheets, the footer displays 1-a, 1-b, 1-c, and so on. When
the next report page starts, the numbering changes to 2-a, 2-b, 2-c, and so on.
How it works...
By enabling horizontal page numbering, we are making sure that Cognos generates
appropriate page numbers with subsections to clearly show how pages are split over
multiple sheets horizontally.
Chapter 6
149