I can SaveToFile and LoadFromFile...
DBRichText1.SaveToFile('x');
Letter.LoadFromFile('x');
But can I use SaveToRTFStream and LoadFromRTFStream?
I can't declare aStream.
Var
aStream : TStream;
DBRichText1.SaveToRTFStream(aStream);
Letter.LoadFromRTFStream(aStream);
Walter
Comments
Solved my issue ....
Letter.RichText := plLE5A['LetterBody'];
But can Streams be used in RAP?
Walter
The TStream class is not natively supported in RAP. One option is to create
a pass-thru function to create and access this class. See the Developer's
Guide and RAP demos on how this can be done.
Another option is to extend the available RAP RTTI objects using a method
similar to the one described in the following article.
http://www.digital-metaphors.com/rbWiki/RAP/Extending_RAP/Adding_Support_to_Existing_RTTI_Objects
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com