MGMap.printDlg   Go to object model Go to parent topic Go to previous topic Go to next topic

Syntax

void printDlg()

Description

Uses the page setup properties, then displays the Print dialog box.

This method is the equivalent of the Printing > Print menu command in the user interface.

Note that this method does not work during a busy state. For additional information about the busy state, refer to "Handling Busy State and Map Refresh" chapter in the Autodesk MapGuide Developer's Guide.

Error Codes

-1 (busy)

Example

This example is designed to work with the Tutorial.mwf file that is included with Autodesk MapGuide Author. It displays the Print dialog box:

function showPrint()
{
    getMap().printDlg();
}

See Also

getPageSetup, PageSetup, pageSetupDlg