ITabSheetExporter.EmfType

Syntax

EmfType: GxEmfType;

Description

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

Comments

Type of created metafile by default - GxEmfType.EmfPlusDual.

Example

Executing the example requires a regular report with the REGULAR_REPORT identifier.

Add links to the Drawing, Metabase, Report and Tab system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Report: IPrxReport;
    TabSheet: ITabSheet;
    Exp: ITabSheetExporter;
Begin
    MB := MetabaseClass.Active;
    Report := MB.ItemById("REGULAR_REPORT").Bind As IPrxReport;
    // Get table for export
    TabSheet := Report.Sheets.Item(0).Table;
    Exp := New TabSheetExporter.Create;
    // Set and perform export in metafile
    Exp.TabSheet := TabSheet;
    Exp.EmfType := GxEmfType.EmfOnly;
    Exp.ExportToFile("C:\img.emf","emf");
End Sub UserProc;

As a result of executing the example, contents of the first report page is exported in the metafile of the GxEmfType.EmfOnly format.

See also:

ITabSheetExporter