Page 1 of 1

How to analyze document in ReportHelper

Posted: Sat Jun 06, 2020 11:21 am
by zbozkurt
Hi;

After loading document I need to analyze items of document. Tables, textstyles and parastyles etc.
How to getting items information from RvReportHelper?

After loading document ReportHelper with using ReportHelper.Richview.LoadRtf(filename)
ReportHelper.Richview.items.count returns zero.

Can any body give me an advice ?

Re: How to analyze document in ReportHelper

Posted: Sat Jun 06, 2020 11:57 am
by Sergey Tkachenko
If ReportHelper.Richview.ItemCount = 0, it means nothing was loaded.
Maybe you did not assign a TRVStyle component to RVReportHelper.RichView.Style?

Also, for proper RTF loading, assign

Code: Select all

ReportHelper.Richview.RTFReadProperties.TextStyleMode := rvrsAddIfNeeded;
ReportHelper.Richview.RTFReadProperties.ParaStyleMode := rvrsAddIfNeeded;
As for item enumeration, see:
1) https://www.trichview.com/help/controls ... items.html
2) https://www.trichview.com/forums/viewto ... f=3&t=3627