Search
DiagramView.Print Method ()
See Also
 





Prints the diagram to the default printer.

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

 Syntax

C#  Copy Code

public void Print ()

Visual Basic  Copy Code

Public Sub Print ()

 Remarks

The method displays the standard Windows print dialog, allowing users to select a printer and choose which portions of the document to print. The smallest rectangular area of the document that contains all diagram elements is printed. Various setting for the print job can be assigned via the PrintOptions structure. That structure exposes as properties the title of the print job and several flags that control whether images, shadows, headers, and so on, are printed. PrintOptions values are used also in preview mode. That ensures similar output on the printed pages and the display.

The second overloaded method does not display print dialog, but uses the options specified through the doc argument. The DefaultPageSettings property of PrintDocument allows setting page size and orientation. The PrinterSettings property allows choosing the device used to print the diagram. It is also possible to attach print-event handlers to doc and do custom printing in addition to the MindFusion.Diagramming standard output.

 See Also