By using PrintPreview Dialog, you can preview how the PrintDocument will appear when printed. The PrintPreview Dialog allows zooming and navigating through the pages via the toolbar.
The user interface of PrintPreviewDialog is built on top of Preview Pane, Text Search Tool, Outline Pane and Thumbnail pane.
The code snippet below shows how you can preview a document prior to printing using the PrintPreview Dialog component.
C# |
コードのコピー
|
---|---|
previewDialog.Document = this.c1PrintDocument1;
previewDialog.ShowDialog()
|