|Print Page Layout
This sample demonstrates changing the PageLayoutControl's page properties and printing the
page to the system default printer. The Microsoft Common Dialog Control (Comdlg32.ocx)
allows users to search and select map documents, which are validated and loaded into the
PageLayoutControl using the CheckMxFile and LoadMxFile methods. Whenever the FormID,
Orientation or PrinterToPageMapping properties of the Page are changed the number of pages to be
printed is updated using the PrinterPageCount property. Before the PageLayout is sent to the printer
using the Print method, the orienataion of the Printer's paper is aligned to that of the Page's
How to use:
Page Layout Control
Either run the PrintPageLayout.exe or open the PrintPageLayout.vbp and run from within the project.
Browse and select a Mx document to load into the PageLayoutControl.
Change the page size, orientation and printer to page mapping properties.
Before printing the page layout, specify the page range to be printed, and whether
there is to be any overlap between pages.
Minimum ArcGIS Version Required:
||VB form file for the PrintPageLayout project.
||VB Binary file.
||VB Project file.
CheckMxFile, LoadMxFile, MousePointer, MxPath, Page, Printer, PrinterPageCount, PrintPageLayout, ZoomToWholePage