Problem in Saving RV as RTF

General TRichView support forum. Please post your questions here
Post Reply
Tarun
Posts: 13
Joined: Wed Nov 01, 2006 12:25 pm
Location: India

Problem in Saving RV as RTF

Post 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
Sergey Tkachenko
Site Admin
Posts: 17564
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Tarun
Posts: 13
Joined: Wed Nov 01, 2006 12:25 pm
Location: India

Post 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
Sergey Tkachenko
Site Admin
Posts: 17564
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Post Reply