ArcObjects Library Reference (Carto)  

IMapReader Interface

Provides access to members that support reading a map document.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

When To Use

When writing your own custom server object use IMapReader to read an .mxd or .pmf.

Members

Description
Read-only property AccessInternalObjects Indicates whether the internal objects of the map can be exposed to external clients.
Method Close Clears out all of the map objects in memory. The client must call the Open method again before attempting any other operations.
Read-only property DocumentInfo A set of name-value pairs for properties set for the map document (mxd only). These properties are string values set in the map document's Map Properties dialog and include: Title, Subject, Author, Category, Keywords and Comments.
Read-only property Map The map object at the specified index.
Read-only property MapCount The number of maps (data frames) in the document.
Method Open Opens an mxd or pmf file stored at the specified path.
Read-only property PageLayout The PageLayout object.
Read-only property Thumbnail The thumbnail stored in the map document.

CoClasses that implement IMapReader

CoClasses and Classes Description
MapReader The MapReader component provides programmatic access to the contents of a map document.

Remarks

MapReader is a helper coclass that reads the contents of a map document file (.mxd and .pmf).  The IMapReader interface provides read-only access to: document information (DocumentInfo), the map object (Map), the number of map objects within the document (MapCount), the page layout object (PageLayout), and the thumbnail image stored in the document.