My coworker had the following code:
DBWPRTAppendix.AssignHeaderTo(WPRtfStorageHeader.RTFText);
How would this now be achieved since AssignHeaderTo no longer exist?
#1
✎ ♥ 0
My coworker had the following code:
DBWPRTAppendix.AssignHeaderTo(WPRtfStorageHeader.RTFText);
How would this now be achieved since AssignHeaderTo no longer exist?
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