Search
DiagramView.PrintPreview Method (PrintDocument)
See Also
 





Displays the standard .NET print preview form.

Namespace: MindFusion.Diagramming.WinForms
Assembly: MindFusion.Diagramming.WinForms

 Syntax

C#  Copy Code

public void PrintPreview (
    PrintDocument doc
)

Visual Basic  Copy Code

Public Sub PrintPreview( _
    doc As PrintDocument _
)

 Parameters

doc
An instance of the .NET PrintDocument class.

 Remarks

The preview output is rendered with the same settings that are used for printing, assigned via the PrintOptions structure. That ensures uniform output of the printed document both on paper and in the preview mode. Print job settings include document title and several flags that control whether images, shadows, headers, and so on, are printed.

This overloaded method allows attaching print-event handlers to a PrintDocument and doing custom printing in addition to the MindFusion.Diagramming standard output.

 See Also