Working with RTF
Rich Text Format is a file format developed by Microsoft that allows you to define text files with formatting, font information, text color, etc.
The RTF renderer will read the text from a control source, which might be a Field, Literal, Script or URL. This means RTF text can be read from your datasource, or from a file on disk.
When the RTF renderer read the text from the
Script it should be
Double Slash \\
Example :
"{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fswiss\\fcharset0
Arial;}}\\viewkind4\\uc1\\pard\\ql\\f0\\fs28 \\b " + Company + "\\b0 .\\par}"
When the RTF renderer read the text from the
Field it should be
Single Slash \
Example :
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0
Arial;}}\viewkind4\uc1\pard\ql\f0\fs28 \b Elixir \b0 .\par}
Note: The Script must be in a single line or must be broken into concatenated strings
"like " +
"this".
RTF is the preferred way to obtain attributed text, where the font, colour, alignment, even line-spacing can vary within a block of text.
For more information on Rich Text Format (RTF) please refer to the link below :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnrtfspec/html/rtfspec.asp
Note: Elixir Report only support text subset of RTF.
--
BennyChe? - 20 Jan 2006