Report > Report Assembly Interfaces > IPrxReportExporter > IPrxReportExporter.ExportPalette
ExportPalette: Boolean;
The ExportPalette property determines whether the palette should be exported to Excel (*.xls).
If the property value is True, when objects are exported, the Excel color palette is replaced with the Foresight Analytics Platform palette; if the value is False, the Excel palette is recalculated based on the palette used in Prognoz Platform.
The default property value is True.
The following example assumes that there is the Report object with the IPrxReport type.
Sub UserProc;
Var
Mb: IMetabase;
Report: IPrxReport;
Exp: IPrxReportExporter;
Begin
Mb := MetabaseClass.Active;
Rep := Mb.ItemById("OBJ_REPORT").Bind As IPrxReport;
Exp := New PrxReportExporter.Create;
Exp.Report := Report;
Exp.ExportPalette := False;
Exp.ExportToFile("C:\Report.xls", "xls");
End Sub UserProc
When the regular report is exported, the palette is recalculated for Excel.
See also: