IExAnalyzerExporter.ExportObjectAsBitmap

Syntax

ExportObjectAsBitmap: Boolean;

Description

The ExportObjectAsBitmap property determines whether objects are to be exported as bitmaps to PDF (*.pdf) and XLS (*.xls) files.

Comments

If the property is set to True, the objects of the report are exported as bitmaps, if the property is set to False, they are exported in vector format.

By default the property is set to True.

Fore Example

Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier.

Sub UserProc;
Var
    MB: IMetabase;
    Express: IEaxAnalyzer;
    EaxExporter: IExAnalyzerExporter;
Begin
    MB := MetabaseClass.Active;
    Express := MB.ItemById("EXPRESS_REPORT").Bind As IEaxAnalyzer;
    EaxExporter := New ExAnalyzerExporter.Create;
    EaxExporter.ExAnalyzer := Express;
    EaxExporter.ExportFootnotes := True;
    EaxExporter.ExportChartAsImage := False;
    EaxExporter.ExportToFile("C:\Report.PDF""PDF");
End Sub UserProc;

After executing the example the express report is exported into the specified PDF file. Report objects are exported in vector format, footnotes are also exported.

Fore.NET Example

The requirements and result of the Fore.NET Example execution match with those in the Fore Example.

Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Metabase;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Express: EaxAnalyzer;
    EaxExporter: IExAnalyzerExporter = New ExAnalyzerExporterClass();
Begin
    MB := Params.Metabase;
    Express := MB.ItemById["EXPRESS_REPORT"].Bind() As EaxAnalyzer;
    EaxExporter.ExAnalyzer := Express;
    EaxExporter.ExportFootnotes := True;
    EaxExporter.ExportChartAsImage := False;
    EaxExporter.ExportToFile("C:\Report.PDF""PDF");
End Sub;

See also:

IExAnalyzerExporter