Nevron Open Vision Documentation
Diagram / File Formats / Export / Printing a Drawing
In This Topic
    Printing a Drawing
    In This Topic

    The NDrawingPrintExporter can help you print the content of the active page of a drawing. The following code shows a print dialog, which allows the user to print the active page:

    Printing the active page of a drawing with print preview
    Copy Code
    NDrawingPrintExporter imageExporter = new NDrawingPrintExporter(drawingView.Content);
    imageExporter.ShowDialog(drawingView.Content, true);
    

    To skip the print preview and show the native print dialog directly, use the Print method of the print exporter:

    Printing the active page of a drawing directly
    Copy Code
    NDrawingPrintExporter printExporter = new NDrawingPrintExporter(drawingView.Content)
    printExporter.Print;