Sheet: IEaxSheet;
The Sheet property export selected express report sheet.
When the property value is not empty, only the selected express report sheet is exported, otherwise all the sheets are exported.
Executing the example requires an express report with the EXPRESS_REPORT identifier.
Sub UserProc;
Var
MB: IMetabase;
Eax: IEaxAnalyzer;
Exporter: IExAnalyzerExporter;
Begin
MB := MetabaseClass.Active;
Eax := MB.ItemById("EXPRESS_REPORT").Edit As IEaxAnalyzer;
Exporter := New ExAnalyzerExporter.Create;
Exporter.Sheet := Eax.ActiveSheet;
Exporter.ExportToFile("C:\Temp\EXPRESS_REPORT.xls", "xls");
End Sub UserProc;
After executing the example only active sheet of the express report is exported.
See also: