Printing
--------------------------------------------------------------------------------
Demonstrates the printing features of the C1FlexGrid control.

The C1FlexGrid has a Print method that prints the grid. The Print method allows
you to specify basic printing parameters such as document title, margins, and
scaling mode. The Print method is the easy way to provide basic printing.

If you need more flexibility, the C1FlexGrid also provides a GetPageImages 
method that returns a list of images that represent a paged view of the grid.
These images can then be added to pages in a PrintDocument to print the grid 
by itself or in combination with other elements.

The sample shows how you can print grids using either method (Print or 
GerPageImages).

The sample also provides a choice of margins and scaling (actual size, fit 
to page width, fit to a single page, print selection).

The GetPageImages method is typically used as follows:

1) Create a PrintDocument object, hook up handlers for the BeginPrint, 
   PrintPage, and EndPrint events.

2) When the PrintPage event is invoked for the first time, call the grid's 
   GetPageImages method to obtain a list of elements that represent portions
   of the grid that fit on each printed page. The GetPageImages method takes 
   into account the actual page size and scaling mode (actual size, fit to 
   page width, or fit to a single page).

3) Render each page by setting the PageVisual property of the PrintPage event
   to an element that represents the current page. This element can be one
   of the elements returned by the GetPageImages method, or it can be a 
   Template that contains the grid image and additional information such as
   a letterhead, headers, and footers.

