Which is the fastest way?

General TRichView support forum. Please post your questions here
Post Reply
natejasper133
Posts: 2
Joined: Sun Jul 15, 2018 12:27 pm

Which is the fastest way?

Post by natejasper133 »

to search for a simple text string in a bunch of .RVF files?

Is there a specialized function for this or do I have to load each RVF file in a TRichView and search the text in it?
Sergey Tkachenko
Site Admin
Posts: 17566
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Which is the fastest way?

Post by Sergey Tkachenko »

You need to load files in TRichView (or TRVReportHelper.RichView).
However, I do not recommend using SearchText, because this procedure selects the result, and selection requires formatted document. Formatting is the slowest procedure, so it should be avoided unless it is necessary.
Instead, enumerate document item by item and search a substring in text items.
Post Reply