How to: Print a Map
To print a map, use one of the following methods.
- MapControl.ShowPrintPreview - invokes the Print Preview Form;
- MapControl.ShowRibbonPrintPreview - invokes the Print Preview Form with the Ribbon bar;
- MapControl.ShowPrintDialog - invokes the standard Print Dialog.
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;
}
}