Page 1 of 1

Convert to HTML without a visual editor

Posted: Wed Jun 01, 2016 5:11 pm
by rafakwolf
It is possible convert RVF format to HTML without a visual component into a form ?

thanks

Posted: Wed Jun 01, 2016 8:05 pm
by Sergey Tkachenko
You can use TRVReportHelper component.
It's not a visual component, although it contains an invisible TRichView as RVReportHelper.RichView

Re: Convert to HTML without a visual editor

Posted: Thu Apr 26, 2018 3:21 pm
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

Re: Convert to HTML without a visual editor

Posted: Mon Apr 30, 2018 9:05 am
by Sergey Tkachenko
This method must work.
Make sure that you linked TRVReportHelper with some TRVStyle component:
RVReportHelper1.RichView.Style := RVStyle1;