How to convert RVF to HTML without using TRichView?

General TRichView support forum. Please post your questions here
Post Reply
Pratik Tiwari

How to convert RVF to HTML without using TRichView?

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

Post 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)
Pratik Tiwari

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

Post 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)
jonjon
Posts: 445
Joined: Sat Aug 27, 2005 4:19 pm

Post by jonjon »

Sergey Tkachenko wrote:(This limitation will be removed in future versions)
This is really interesting! Looking forward to that.
Post Reply