BreakIntoLayouts: Boolean;
BreakIntoLayouts: boolean;
The BreakIntoLayouts property determines whether it is necessary to break a sheet into printed pages when exporting to RTF format (*.rtf).
Available values:
True. Default value. Exported sheets are divided into printed pages.
False. Exported sheets are not divided into printed pages. If there are pass-through rows at top on the sheet, the Print on Every Page checkbox is selected for these rows. Cell area up to pass-through rows is exported as an individual table.
Executing the example requires that the repository contains a regular report with the Report_1 identifier.
Add links to the Metabase, Report system assemblies.
Sub UserProc;
Var
MB: IMetabase;
Report: IPrxReport;
Exp: IPrxReportExporter;
Begin
MB := MetabaseClass.Active;
Report := MB.ItemById("Report_1").Bind As IPrxReport;
Exp := New PrxReportExporter.Create;
Exp.Report := Report;
Exp.BreakIntoLayouts := True;
Exp.ExportToFile("C:\" + Report.Name + ".rtf", "rtf");
End Sub UserProc;
On executing the example the report is exported to the RTF format. On export the sheet is divided into printed pages.
The requirements and result of the Fore.NET example execution match with those in the Fore example.
Imports Prognoz.Platform.Interop.Report;
…
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
Report: IPrxReport;
Exp: IPrxReportExporter;
Begin
MB := Params.Metabase;
Report := MB.ItemById["Report_1"].Bind() As IPrxReport;
Exp := New PrxReportExporter.Create();
Exp.Report := Report;
Exp.BreakIntoLayouts := True;
Exp.ExportToFile("C:\" + Report.Name + ".rtf", "rtf");
End Sub;
See also: