How to convert RVF to RTF without any visual components

General TRichView support forum. Please post your questions here
Post Reply
rferriz
Posts: 2
Joined: Tue Apr 10, 2012 10:05 am

How to convert RVF to RTF without any visual components

Post by rferriz »

Hello!

We have in database TField a blob in RVF format. But I need to convert it to RTF to be able to import into our report system (that is able to print RTF blobs but not RVF ones), without using any visual component (our entire reporting system is on a DataModule so we can't create here any visual component).

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

Post by Sergey Tkachenko »

Use TRVReportHelper. It contains a TRichView inside (RVReportHelper.RichView), however, it is invisible, does not require a parent window, so this component can be placed in a datamodule.

Note 1: if document contains tables, it must be formatted before saving to RTF. Call RVReportHelper.Init before saving to RTF
Note 2: you still need TRVStyle, to assign to RVReportHelper.RichView.Style
Post Reply