Unit RTFReport2

Description

RTFReport2 unit contains TRTFReport2 - non visual component which provides functionality for generating reports according prepared RTF or TXT template with special TAGs; it uses this template and fill data into it instead of TAGs; RTF template can be modified easily by any RTF or TXT editor (i.g. MS Word).

See homepage http://www.rosinsky.cz/delphi/ for detail help.

Updated version compatible with Delphi2010+ and 64bit platform. Splash screen in demo version.

Overview

Classes, Interfaces, Objects and Records

Name Description
Class TCalcField Object contain calculated value for each field, used by TRTFReport2
Class TRTFReport2 non visual component which provides functionality for generating reports according prepared RTF template with special TAGs

Types

TTemplateFormat = (...);
TRTFTextFormat = (...);
TRTFTextFormats = set of TRTFTextFormat;
TMemoFormat = (...);
TReportProcessEvent = procedure(Sender: TObject; RecNbr: integer; var Abort: boolean) of object;
TUserCalc = procedure(Sender: TObject; var CalcStr: string; var Replace: boolean) of object;
TUserCalcParams = procedure(Sender: TObject; FuncName: string; Params: array of variant; var FuncResult: variant; var Replace: boolean) of object;
TOnGetPictureContent = procedure(Sender: TObject; FuncName: string; Bmp: TBitmap) of object;
TModifyContent = procedure(Sender: TObject; var FileContent: string) of object;
TOnGetTemplateStr = procedure(Sender: TObject; var TemplateStr: string) of object;

Constants

maxDS = 25;
UseUnicodeTag = true;

Description

Types

TTemplateFormat = (...);

list of template format types used by TRTFReport2

Values
  • tfAutoDetect
  • tfRTF
  • tfText
TRTFTextFormat = (...);

list of RTF text format types used by TRTFReport2

Values
  • frmBold
  • frmItalic
  • frmUnderline
TRTFTextFormats = set of TRTFTextFormat;

set of RTF text format types used by TRTFReport2

TMemoFormat = (...);

list of memo or blob format types (used if is not defined in rtf template) used by TRTFReport2

Values
  • mfText
  • mfRTF
  • mfAutoDetect
  • mfRTFLine
  • mfPlain
TReportProcessEvent = procedure(Sender: TObject; RecNbr: integer; var Abort: boolean) of object;

event type called for each record during reporting, used by TRTFReport2

TUserCalc = procedure(Sender: TObject; var CalcStr: string; var Replace: boolean) of object;

event type called to get calculated string result, used by TRTFReport2

TUserCalcParams = procedure(Sender: TObject; FuncName: string; Params: array of variant; var FuncResult: variant; var Replace: boolean) of object;

event type called to get calculated string result, supports function parameters, used by TRTFReport2

TOnGetPictureContent = procedure(Sender: TObject; FuncName: string; Bmp: TBitmap) of object;

event type called to get bitmap content for Picture tag

TModifyContent = procedure(Sender: TObject; var FileContent: string) of object;

event type called to modify file content, used by TRTFReport2

TOnGetTemplateStr = procedure(Sender: TObject; var TemplateStr: string) of object;

event type called instead of loading of template file, used by TRTFReport2

Constants

maxDS = 25;
 
UseUnicodeTag = true;
 

Author

Created

Apr 2006

Last Modified

Oct 2020


Generated by PasDoc 0.15.0.