GenerateReport

<< Click to display table of contents >>

GenerateReport

Generates error for ScaleRichView editor Editor.

Unit RVReportSRVGenerator;

Syntax

function GenerateReport(Editor: TSRichViewEdit;
 Generator: TRVReportGenerator

 IncludeInvisibleHeaders: Boolean = False;

 UseThread: Boolean = False): Boolean;

This method calls Generator.Execute for Editor.SubDocuments[] (headers and footers) and then for Editor.RichViewEdit (main document).

If IncludeInvisibleHeaders = False, only visible Editor.SubDocuments[] are processed. Headers and footers may be hidden by the following properties:

Editor.PageProperty.TitlePage

Editor.PageProperty.FacingPages

Editor.ViewProperty.HeaderVisible

Editor.ViewProperty.FooterVisible

If IncludeInvisibleHeaders = True, all Editor.SubDocuments[] are processed.

Headers and footers are always processed in the context of the main process. The main document can be processed in a background thread, if UseThread = True.

Generator.OnGenerated event is called only for the last generation (for the main document).

Return value:

False, if at least one call of Generator.Execute returns False.