Page 1 of 1

How to convert RVF to HTML without using TRichView?

Posted: Wed Oct 19, 2005 11:42 am
by Pratik Tiwari
Hi Sergey,

I have a .rvf file which I need to convert into HTML.
But I dont want to use the actual RichView,
as my application is both Windows based & Web based.

Now Web based application does not support the windows components.
Is there any way so that I can do this? (for eg, using the TRVData (if it is possible)?).

Please help me out.

Thanks in advance,

Regards,
Pratik Tiwari

Posted: Wed Oct 19, 2005 12:43 pm
by Sergey Tkachenko
No, it's not possible in this version of trichview.
But you can create visual components even in web application, you do not need to display them.

Note 1: initial values of some properties of TRichViews created in code are different from initial values of properties of TRichViews placed on a form at design time. To load RVF containing collections of styles properly, values of some properties must be changed. You can see them in the designtime component editor, right click TRichView in Delphi and choose "Settings" in the popup menu.

Note 2: do not call Format after loading RVF (otherwise you'll need to create a form and assign it as RichView.Parent)

Posted: Thu Oct 20, 2005 4:40 am
by Pratik Tiwari
If I donot call format after loading, will it work correctly.
My file could be a text file, RVF or RTF & even HTML.

Please confirm.

Regards,
Pratik

Posted: Thu Oct 20, 2005 9:27 am
by Sergey Tkachenko
Unformatted documents can be saved to RVF and HTML.
Only export to RTF (specifically, export of tables) requires a formatted document, otherwise it formats the document itself.
If you want to save RTF (containing tables), you need to place TRichView on (invisible) form (This limitation will be removed in future versions)

Posted: Thu Oct 20, 2005 12:42 pm
by jonjon
Sergey Tkachenko wrote:(This limitation will be removed in future versions)
This is really interesting! Looking forward to that.