Search
DiagramView.CreatePrintDocument Method
See Also
 





Creates a PrintDocument object that can be used to print or preview the current diagram.

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

 Syntax

C#  Copy Code

public PrintDocument CreatePrintDocument ()

Visual Basic  Copy Code

Public Function CreatePrintDocument () As PrintDocument

 Return Value

A PrintDocument instance.

 Remarks

The DisposePrintDocument method must be called when done using the document.

 Example

The following example shows how to use this method to display the diagram in a PrintPreviewControl placed inside your own form.

C#  Copy Code
previewControl.Document = diagramView.CreatePrintDocument();
Visual Basic  Copy Code
previewControl.Document = diagramView.CreatePrintDocument()

 See Also