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


IMxdServer.ExportLayout Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMxdServer Interface > IMxdServer.ExportLayout Method
ArcGIS Developer Help

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
);
[C++]
Parameters
MapDescriptors [in]

MapDescriptors is a parameter of type IArray* Dpi [in]
Dpi is a parameter of type int imageWidth [in]
imageWidth is a parameter of type int imageHeight [in]
imageHeight is a parameter of type int 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

Product Availability

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

See Also

IMxdServer Interface