A newer version of this page is available. Switch to the current version.

MapControl.ShowRibbonPrintPreview() Method

Invokes the Ribbon Print Preview Form window, which shows the ribbon print preview of the map control.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v19.2.dll

Declaration

public void ShowRibbonPrintPreview()
Public Sub ShowRibbonPrintPreview

Remarks

The Print Preview form displays the map as it will appear when printed. To print the map, use the MapControl.Print method and to export it, use the appropriate ExportTo~ method (e.g. MapControl.ExportToPdf, etc.)

NOTE

The Map control can be previewed, printed or exported only if the XtraPrinting Library is available.

Examples

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;
    }
}
See Also