This document is archived and information here might be outdated.  Recommended version.


IMxdServer.ExportLayout Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IMxdServer.ExportLayout Method

Generates an image of the layout, based on the given array of map descriptors, and writes the image to a specified file on disk. Supported Image types are: 'bmp', 'jpg', 'tif', 'png', 'emf', 'eps', 'pdf', 'ai', 'pcx'.

[Visual Basic .NET]
Public Function ExportLayout ( _
    ByVal MapDescriptors As IArray, _
    ByVal Dpi As Integer, _
    ByVal imageWidth As Integer, _
    ByVal imageHeight As Integer, _
    ByVal pageExtent As IEnvelope, _
    ByVal fileType As String, _
    ByVal outputFileName As String _
) As IEnvelope
[C#]
public IEnvelope ExportLayout (
    IArray MapDescriptors,
    int Dpi,
    int imageWidth,
    int imageHeight,
    IEnvelope pageExtent,
    string fileType,
    string outputFileName
);
[C++]
HRESULT ExportLayout(
  IArray* MapDescriptors,
  Long Dpi,
  Long imageWidth,
  Long imageHeight,
  IEnvelope* pageExtent,
  BSTR fileType,
  BSTR outputFileName,
  IEnvelope** fittedBounds
);
[C++]

Parameters MapDescriptors [in]
MapDescriptors is a parameter of type IArray Dpi [in] Dpi is a parameter of type Long imageWidth [in] imageWidth is a parameter of type Long imageHeight [in] imageHeight is a parameter of type Long pageExtent [in]
pageExtent is a parameter of type IEnvelope fileType [in] fileType is a parameter of type BSTR outputFileName [in] outputFileName is a parameter of type BSTR fittedBounds [out, retval]
fittedBounds is a parameter of type IEnvelope

Product Availability

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

See Also

IMxdServer Interface