ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapView Class / Print Method / Print(PrinterSettings) Method
printer settings. If none are specified, the Print Dialog will be shown allowing you to configure the print options.

In This Topic
    Print(PrinterSettings) Method
    In This Topic
    Print the mapview using the specified settings. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void Print( 
       PrinterSettings printerSettings
    )
    Public Overloads Sub Print( _
       ByVal printerSettings As PrinterSettings _
    ) 

    Parameters

    printerSettings
    printer settings. If none are specified, the Print Dialog will be shown allowing you to configure the print options.
    Exceptions
    ExceptionDescription
    Printing is disabled or not possible due to stream layers.
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    Check CanPrint before printing
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.1 or higher.
    See Also