How to use
See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.
- Browse and select a map document to load into the PageLayoutControl.
- Change the page size, orientation, and printer to the 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.
Additional information
Changing the page orientation or size can result in the map frame shrinking in relation to the page. This is dependant on the IPage.StretchGraphicsWithPage property.
AssemblyInfo.cs | Assembly information. |
PrintPageLayout.cs | Form file. |
AssemblyInfo.vb | Assembly information. |
PrintPageLayout.vb | Form file. |
Download the files for all languages
See Also:
PageLayoutControl classIPageLayoutControl interface
Development licensing | Deployment licensing |
---|---|
Engine Developer Kit | Engine |
ArcGIS for Desktop Basic | |
ArcGIS for Desktop Standard | |
ArcGIS for Desktop Advanced |