trichview.com

trichview.support




Re: Saving and loading from stream


Return to index


Author

Message

Jonas

Posted: 05/17/2005 0:43:17


Nevermind that, problem solved. Thanks alot Sergey for your help!


"Jonas" <randomslut@enigma.se> skrev i meddelandet

news:4289159e@support.torry.net...

> Thanks for the help!

>

> One question though. How do i change "Allow adding styles dynamically" in

> runtime? Cause i create the richviewedit in runtime so i cant change the

> settings by rightclicking.

>

>

> "Sergey Tkachenko" <svt@trichview.com> skrev i meddelandet

> news:4286fee8@support.torry.net...

>> For example, copying from rv1 to rv2:

>>

>> var Stream: TMemoryStream;

>>

>> Stream := TMemoryStream.Create;

>> rv1.SaveRVFToStream(Stream, False);

>>

>> Stream.Position := 0;

>> rv2.LoadRVFFromStream(Stream);

>> Stream.Free;

>>

>> (in order to copy document properly, rv1 and rv2 must be either linked to

>> RVStyle with the same set of styles, or have "Allow adding styles

>> dynamically" option set (right click TRichView on the form in Delphi,

>> choose

>> "Settings" in the context menu))

>>

>>

>>> I know, but i dont know how to do it. Ive tried but i cant get it to

>>> work.

>> I

>>> cant say im an expert in the area, so an example would help out alot!

>>> Thanks.

>>>

>>

>>

>

>





Powered by ABC Amber Outlook Express Converter