Show contents 

Express > Express Assembly Interfaces > IExAnalyzerExporter > IExAnalyzerExporter.EmfType

IExAnalyzerExporter.EmfType

Syntax

EmfType: GxEmfType;

Description

The EmfType property determines the type of the metafile created on export.

Comments

Default type of created metafile type - GxEmfType.EmfPlusDual.

Example

Executing the example requires an express report with the EXPRESS identifier.

Add links to the Drawing, Express, Metabase system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Express: IEaxAnalyzer;
    Sheet: IEaxSheet;
    Exp: IExAnalyzerExporter;
Begin
    MB := MetabaseClass.Active;
    Express := MB.ItemById("EXPRESS").Bind As IEaxAnalyzer;
    // Get page for export
    Sheet := Express.ActiveSheet;
    Exp := New ExAnalyzerExporter.Create;
    // Set and perform export in metafile
    Exp.Sheet := Sheet;
    Exp.EmfType := GxEmfType.EmfOnly;
    Exp.ExportToFile("C:\img.emf","emf");
End Sub UserProc;

After executing the example the report is exported to the metafile in the EMF format.

See also:

IExAnalyzerExporter