|
ExportRichText
|
Top |
|
procedure ExportRichText(FilePath: String; ALeft, ATop, ARight, ABottom: Double; StartPos, EndPos: Integer; BackgroundColor: TColor); overload;
procedure ExportRichText(FileStream: TStream ; ALeft, ATop, ARight, ABottom: Double; StartPos, EndPos: Integer; BackgroundColor: TColor); overload;
Call ExportRichText function to Export RTF files onto the documents at specified position. The first function accepts an absolute path of the RichTextFile. The second function which is an overloaded version accepts the memory File Stream.
ALeft, ATop, ARight & ABottom: Specifies the rectangular region within which the rich-text needs to be rendered. BackgroundColor: Specifies the background color of the rectangular region. StartPos: StartPos is an integer representing the start position. To start from the beginning of the document this would be set to 0. EndPos: EndPos is an integer representing the end position. If this is set to -1 then it renders the whole document.
|