AssignHeaderTo missing in v5.

  • My coworker had the following code:


    Code
    DBWPRTAppendix.AssignHeaderTo(WPRtfStorageHeader.RTFText);

    How would this now be achieved since AssignHeaderTo no longer exist?

    Edited once, last by gsaunders (June 5, 2007 at 1:51 PM).

  • Hi,

    this is the FAQ - this is why the question was overlooked.

    Usually the RTFStoreage has to be replaced by a simple string. That can be loaded using the AsString property which existis in both, the TWPRichText and the TWPRTFDatabLock.RTFText property.

    DBWPRTAppendix.AssignHeaderTo(WPRtfStorageHeader.RTFText);

    would be converted to

    var WPRtfStorageHeader : string;

    WPRtfStorageHeader :=
    DBWPRTAppendix.Geat(wpIsHeader, wpraAllPages).RTFtext.AsString.

    Julian