| |
How to: Print a Map
To print a map, use one of the following methods.
C#:Form1.cs |
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;
}
}
|
VB:Form1.vb |
Private Sub ddbPrint_Click(ByVal sender As Object, ByVal e As EventArgs) Handles ddbPrint.Click
Select Case printType
Case (MapControl_PrintingExporting.PrintType.Preview)
mapControl.ShowPrintPreview()
Case (MapControl_PrintingExporting.PrintType.RibbonPreview)
mapControl.ShowRibbonPrintPreview()
Case (MapControl_PrintingExporting.PrintType.Dialog)
mapControl.ShowPrintDialog()
End Select
End Sub
|
Is this topic helpful?
Additional Feedback
Close
|