This document is archived and information here might be outdated. Recommended version. |
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(
System.String* fileName
);
[C++] Parameters fileName [in]
fileName is a parameter of type BSTR fileName [out, retval]
fileName is a parameter of type BSTR*
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.