This document is archived and information here might be outdated. Recommended version. |
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 );
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.
2003 800A07D3: No document loaded
2016 800A07E0: No export file name specified
2107 800A083B: The current document does not have permission to export
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.