Load a map document into the PageLayoutControl


PurposeThe Browse dialog box allows users to search and select map documents (*.mxd, *.mxt, and *.pmf) that are loaded into the PageLayoutControl using the LoadMxFile method. As .pmf map documents can be password protected, this is checked for using IMapDocument.IsPasswordProtected. If the document is password protected, the user will be prompted for the password.

Development licensing Deployment licensing
Engine Developer Kit Engine Runtime
ArcView
ArcEditor
ArcInfo

How to use

See Using the samples for help on compiling, setting up the debugger, and running the sample (either an exe or dll).

  1. Browse to a map document to load into the PageLayoutControl. The map document can be an ArcMap document, an ArcMap template, or a Published Map File (PMF).

AssemblyInfo.cs Assembly information.
LoadMap.cs Form file.
Password.cs Form file.
Download the C# files
AssemblyInfo.vb Assembly information.
LoadMap.vb Form file.
Password.vb Form file.
Download the VB.NET files

Download the files for all languages

See Also:

PageLayoutControl class
IPageLayoutControl interface