Page 1 of 1

Problem in Saving RV as RTF

Posted: Wed Aug 22, 2007 12:30 pm
by Tarun
Hi,

There is a problem in saving Richview as RTF, if Richview contains table and in table if there are some controls.

Actually, In RV table, i am inserting a frame (TFrame) in every cell.
When i am trying to save it as RTF format, it will save only table not the frames inserted in the cell of the RV table.


please help me for this.


Thanks & Regards:
Tarun

Posted: Wed Aug 22, 2007 3:58 pm
by Sergey Tkachenko
Controls are not saved in RTF.
If you need to save them, you can use OnSaveComponentToFile event. You need to know RTF format to implement this event.
But there is still no way to load controls back from RTF.
If you need to store controls, use RVF (RichView Format) instead.

Posted: Fri Aug 24, 2007 10:29 am
by Tarun
Hi Admin,

How can i save the controls in RVF. I had also tried to save the
RV containing controls but the function SaveToRVF is not saving the controls.

Please Comment.


Regards:
Tarun

Posted: Fri Aug 24, 2007 4:56 pm
by Sergey Tkachenko
Controls are saved in RVF by default (all their published properties are stored, except for links to other components and events).
In order to load controls, they must be registered using RegisterClass.
For example:
RegisterClass(TButton);
Call registering code one time before the first RVF loading.