Page 1 of 1

Performance issue with ppRichView in ReportBuilder

Posted: Thu Nov 26, 2020 11:03 am
by civica_andrew
Hi

I have a report that shows an RTF field and may well lead to producing hundreds of pages as it can span many records. Now the standard RB control does not support images so we added the richview control into RB and used that. If I test the report with the original RB control for rich text and the control from richview the RB control knocks it out the park and richview is rather slow. The actual RTF I'm using it is just Lorum Ipsum text with no graphics or pasted word documents.

Standard RB takes 6 seconds to produce 82 pages
RichView takes 46 seconds to produce 82 pages

Any ideas or pointers as to how to improve performance?

I have clients who produce a 1000 pages to PDF and it is taking an hour to do it.

Regards
Andrew

Delphi RIO 10.3
RB 19.03
RV 18.00

Re: Performance issue with ppRichView in ReportBuilder

Posted: Thu Nov 26, 2020 12:01 pm
by Sergey Tkachenko
Please send a sample RTF to me (zipped), to email richviewgmailcom

Re: Performance issue with ppRichView in ReportBuilder

Posted: Fri Nov 27, 2020 11:44 am
by Sergey Tkachenko
I received the file, thank you!
I'll try to find the problem in the beginning of the next week, sorry for the delay.

Re: Performance issue with ppRichView in ReportBuilder

Posted: Mon Nov 30, 2020 9:01 am
by Sergey Tkachenko
Please send me a sample project as well.

I cannot reproduce this problem in my tests. When I did my tests, a preview of a report with our ppRichView is created in about 6 seconds, while a preview with the standard RB richtext is created in about 25 seconds.

I use RB20.03 and the newest version of TRichView, but I do not think that the version difference is so important.

Re: Performance issue with ppRichView in ReportBuilder

Posted: Mon Nov 30, 2020 1:49 pm
by civica_andrew
I have taken it down to a simple 1 record, 1 field BLOB table and the query is just SELECT * FROM... with no where clause. The report design is just a title and the detail is the dbrichview control and I get the performance the other way round from you with your richview running a lot slower. As you get yours running faster there has to be some issue with the way we have configured it into RB itself, something about our environment.

Re: Performance issue with ppRichView in ReportBuilder

Posted: Wed Dec 16, 2020 11:43 am
by civica_andrew
Is there anything further I could do on this? We still have the performance issue and I can't see how to install TRichView in the wrong way. It uses the ppRichView.pas and creates two additional controls one for DB one not.

Do you have a compiled RB application I could try here to connect to our data?

Re: Performance issue with ppRichView in ReportBuilder

Posted: Wed Dec 16, 2020 3:10 pm
by civica_andrew
Was your test done with a control with a number of configurable options changed from the defaults (ours runs all defaults)? Is there a way to tune the control?

Re: Performance issue with ppRichView in ReportBuilder

Posted: Wed Dec 16, 2020 5:25 pm
by Sergey Tkachenko
A just placed an object on the report, set Stretched to true using the menu, and loaded RTF file.
I used non-DB version of objects.

Can you create a sample project reproducing the delay?
Maybe it is possible to do without a database?