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 » Wed Jun 01, 2016 5:11 pm

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

thanks

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

Post by Sergey Tkachenko » Wed Jun 01, 2016 8:05 pm

You can use TRVReportHelper component.
It's not a visual component, although it contains an invisible TRichView as RVReportHelper.RichView

krimsoniuss
Posts: 1
Joined: Thu Apr 26, 2018 2:14 pm

Re: Convert to HTML without a visual editor

Post by krimsoniuss » Thu Apr 26, 2018 3:21 pm

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: 14117
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Convert to HTML without a visual editor

Post by Sergey Tkachenko » Mon Apr 30, 2018 9:05 am

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

Post Reply