trichview.com

trichview.support




Re: RichViewEdit to RVReportHelper.RichView


Return to index


Author

Message

Sergey Tkachenko

Posted: 11/27/2003 17:59:30


var Stream: TMemoryStream;


Stream := TMemoryStream.Create;

rv.SaveRVFToStream(Stream, False);

Stream.Position := 0;

rvrh.RichView.LoadRVFFromStream(Stream);

Stream.Free;


rv and rvrh.RichView must be either

- linked to the same RVStyle component

or

- rv must have "Allow adding styles dynamically" set (right click rv in

Delphi, choose "Settings" in the context menu")

- rvrh.RichView.RVFTextStylesReadMode must be rvf_sInsertMerge, the same for

- rvrh.RichView.RVFParaStylesReadMode

- both rv and rvrh.RichView must have rvoTagsArePChars in Options (or both

must do not have it)





Powered by ABC Amber Outlook Express Converter