AsString property
Change the text of a header or footer text.

Applies to
TWPRTFBlobContents

Declaration
property AsString: string;

Description
This property make is possible to set or retrieve the contents of a TWPRTFdataBlock as string. You can use AsString to quickly create a text. Accepted formats are ANSI, RTF and HTML and also WPTOOLS. The format of the string is auto detected. If you use HTML please start the text with a >html< tag.
Note: Using the WPTools extensions to the HTML format you can create text objects and mail merge fields quickly.
        WPRichText1.HeaderFooter.Get(wpIsFooter,wpraOnAllPages).RtfText.AsString :=
    '<html><div align=right style="border-top-width:0.5pt">Page <pagenr/> of <pagecount/></div></html>';

Category
Load and Save
Header+Footer


Copyright (C) by WPCUBED GmbH - Munich
http://www.wpcubed.com