Printing Logical Pages of Crosstabs and Tables

In a view, a logical page of data is the data that appears in the view at one time. In a table or crosstab, an entire logical page of data might not be visible on the screen, but you can scroll vertically and horizontally to view the rest of the page.

A physical page is a sheet of paper on which a view is printed. In a graph, a single logical page of data is always printed onto a single physical page. In a table or crosstab, however, a logical page of data might be printed on several physical pages.

Example: Logical and physical pages

Suppose that you have a logical page of data that has 12 rows and 12 columns, but only six rows and four columns can fit on a physical page. The physical pages would be printed in the following order, by default:

  1. First six rows, first four columns

  2. First six rows, next four columns

  3. First six rows, last four columns

  4. Last six rows, first four columns

  5. Last six rows, next four columns

  6. Last six rows, last four columns

The following figure illustrates this printing order.

Printing order of a logical page, described in text

Controlling the display of row headers and column headers

By default, row and column headers appear on each physical page on which a logical page is printed. If you plan to reconstruct the printed pages into a single logical page, then set the RepeatHeaders property of the ViewPrinter to false. When RepeatHeaders is false, then the column headers appear only on pages where the first row is printed, and row headers appear only on pages where the first column is printed.

The RepeatHeaders property also controls whether the titles and the paging component appear on each page. A visible title, subtitle, footnote, or paging control appears on each page when RepeatHeaders is set to true. When RepeatHeaders is set to false, then the title, subtitle, and paging control appear only on the first physical page. The footnote appears only on the last physical page.

Controlling the order that rows and columns are printed

By default, the view printer prints all of the columns for the first rows of data before it prints columns of the subsequent rows. If you want to print all of the rows for the first set of columns, then set the PrintByColumns property of the ViewPrinter to false.

For example, suppose that you have the logical page that is described earlier in this topic. That logical page has 12 rows and 12 columns, but only six rows and four columns can fit on a physical page. If you set PrintByColumns to false, then the physical pages would be printed in the following order:

  1. First four columns, first six rows

  2. First four columns, last six rows

  3. Next four columns, first six rows

  4. Next four columns, last six rows

  5. Last four columns, first six rows

  6. Last four columns, last six rows

The following diagram illustrates the page order for this logical page, when PrintByColumns is false.

Printing order of logical page; described in text