You can preview what the printed pages will look like for a sheet and you can allow your end user to preview the printing. Use the OwnerPrintDraw method of the FpSpread class to provide a print preview dialog with some options for previewing the pages before printing.
A sample illustrating this method is installed with the product samples. When you run the sample code, you can select Print Preview from the File pull-down menu on the form. This launches the print preview dialog.
Two additional printing features are: the PrintPreviewShowing event and the ability to set your own print preview dialog with the SetPrintPreview method (and the corresponding GetPrintPreview method), all members of the FpSpread class. The PrintPreviewShowing event fires prior to displaying the dialog and supplies you with both the PreviewDialog and the PreviewControl in its event parameter list so you can make on-the-fly modifications to the PrintPreviewDialog and the PrintPreviewControl objects.
The print preview dialog allows you to zoom in and out to change the scale of what you see in the preview. You can set the preview to display one, two, four, or six pages of the spreadsheet per printed page. You can print from the print preview dialog or simply close the dialog when done.
You can also print and preview the printing within the Spread Designer. For more information on printing and previewing in Spread Designer, refer to Printing a Sheet from Spread Designer and Previewing a Sheet in Spread Designer, both in the Spread Designer Guide.
Return to the overview of Displaying Dialogs for Users.