Skip to main content
A newer version of this page is available. .

MapControl.ShowPrintDialog() Method

Displays the standard Print dialog to print the data displayed in the MapControl.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v19.1.dll

Declaration

public void ShowPrintDialog()

Remarks

The Print dialog allows you to select a printer and its settings, and then start or cancel the print operation.

Example

To print a map, use one of the following methods.

private void ddbPrint_Click(object sender, EventArgs e) {
    switch (printType) {
        case (PrintType.Preview):
            mapControl.ShowPrintPreview();
            break;
        case (PrintType.RibbonPreview):
            mapControl.ShowRibbonPrintPreview();
            break;
        case (PrintType.Dialog):
            mapControl.ShowPrintDialog();
            break;
    }
}

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowPrintDialog() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also