EmfType: GxEmfType;
The EmfType property determines the type of the metafile created on export.
By default, the type of created metafile is GxEmfType.EmfPlusDual.
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 will be exported to the metafile in the GxEmfType.EmfOnly format.
See also: