Convert to HTML without a visual editor

General TRichView support forum. Please post your questions here
Post Reply
rafakwolf
Posts: 30
Joined: Tue Sep 27, 2011 11:39 am

Convert to HTML without a visual editor

Post by rafakwolf »

It is possible convert RVF format to HTML without a visual component into a form ?

thanks
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

You can use TRVReportHelper component.
It's not a visual component, although it contains an invisible TRichView as RVReportHelper.RichView
krimsoniuss
Posts: 7
Joined: Thu Apr 26, 2018 2:14 pm

Re: Convert to HTML without a visual editor

Post by krimsoniuss »

I am trying to use this approach to convert RTF text and images that are stored in a database to HTML without any user interface. After I load the RTF in the TRVReportHelper.RichView and call SaveHTMLToStream I get empty result.

Can you explain if my approach is possible or if there is another way to convert RTF stored in a database directly to HTML (stream) without user interface?

Regards,

Maikel
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Convert to HTML without a visual editor

Post by Sergey Tkachenko »

This method must work.
Make sure that you linked TRVReportHelper with some TRVStyle component:
RVReportHelper1.RichView.Style := RVStyle1;
Post Reply