Page 1 of 1

How to convert RVF to RTF without any visual components

Posted: Tue Apr 17, 2012 8:38 am
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?

Posted: Tue Apr 17, 2012 10:55 am
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