How to analyze document in ReportHelper

General TRichView support forum. Please post your questions here
Post Reply
zbozkurt
Posts: 10
Joined: Sun May 17, 2020 2:59 pm

How to analyze document in ReportHelper

Post 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 ?
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: How to analyze document in ReportHelper

Post 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
Post Reply