ArcObjects Library Reference (PublisherControls)  

IARControl.ExportView Method

Export the current map or page layout view to the file.

[Visual Basic .NET]
Public Sub ExportView ( _
    ByVal format As esriARExportFormat, _
    ByVal sFilename As String _
)
[C#]
public void ExportView (
    esriARExportFormat format,
    string sFilename
);

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

Exports the CurrentView with the specified filename, in the specified format. The output will exactly reflect the state of the CurrentView as seen on the screen.

Errors Returned

2003 800A07D3: No document loaded

2016 800A07E0: No export file name specified 

2107 800A083B: The current document does not have permission to export 

Remarks

The Export method will return an error if the currently loaded document was not published with permission to Export. Use the IARControl::HasDocumentPermission method to determine this.

See Also

IARControl Interface