Slow Rendering Rich Text
I have a ppDBRichText control to render some text. This works fine until I try to modify the text with a GetRichText event, which slows down the rendering to over a second per page, and I have 50+ pages. I am simply "bolding" some characters inside the text string. I assume the issue is RB trying to render the formatting. If I only mess with the text by modifying it, without any richtext controls, RB works fine, but when I add the logic to "bold" some characters, it really slows down.
My code is something like this:
Text:='{\rtf1\ansi{\b '+Bold Text+'}}'; - this works fine other than being slow
Is there a way to speed this up?
My code is something like this:
Text:='{\rtf1\ansi{\b '+Bold Text+'}}'; - this works fine other than being slow
Is there a way to speed this up?
Comments
I sent an email to you with an accompanying example and a request for more information last Tuesday. I will post a solution here once we are able to find the issue and solve it.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I'll get back to you when I know something
I'll get back to you when I know something
So maybe this is documented somewhere, and I have either missed it or long forgotten it, but when a report component has "Stretch" checked and it needs to enlarge, it works fast, but not if it needs to shrink, at least in my application with this TppDBRichText component.
I verified this also with your sample program by leaving the Notes Rich Text box the same size, but limited the Notes text to 50 characters. The report displayed the 1st page quickly, but in the status box on the bottom left, you could see it calculating pages 1 by 1 and fairly slowly.