ArcObjects Library Reference (Output)  

IExport.ExportFileName Property

The Export File Name.

[Visual Basic .NET]
Public Property ExportFileName As String
[C#]
public string ExportFileName {get; set;}
[C++]
HRESULT get_ExportFileName(
  BSTR* fileName
);
[C++]
HRESULT put_ExportFileName(
  BSTR fileName
);
[C++]

Parameters

fileName [out, retval]   fileName is a parameter of type BSTR fileName [in]   fileName is a parameter of type BSTR

Product Availability

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

Remarks

You must assign a value to the ExportFileName property before calling the IExport::StartExporting() method.  There are two exceptions to this.  If IExport is controlling a ExportBMP or ExportEMF object, you can assign an empty string to the ExportFileName property without an error being raised on StartExporting().  This is to allow cases where the application will use the export object as a intermediate container for a drawing, and won't be written to an export file.

See Also

IExport Interface

.NET Snippets

Create JPEG (hi-resolution) from ActiveView | Create JPEG from ActiveView |

.NET Samples

Export active view (Code Files: ExportActiveViewVB_Net) |