WPCubed Product Support

AssignHeaderTo missing in v5.

My coworker had the following code:

DBWPRTAppendix.AssignHeaderTo(WPRtfStorageHeader.RTFText);

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

#1 ✎ ♥ 0
14.7k Views 2 users read 1 min
support

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

#3 ♥ 0
This category is archived. No new posts are possible.