IPrxReportExporter.BreakIntoLayouts

Fore Syntax

BreakIntoLayouts: Boolean;

Fore.NET Syntax

BreakIntoLayouts: boolean;

Description

The BreakIntoLayouts property determines whether it is necessary to break a sheet into printed pages when exporting to RTF format (*.rtf).

Comments

Available values:

Fore Example

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.

Fore.NET Example

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:

IPrxReportExporter