Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

TppDBRichEdit Stretch works on one PC but not on another (Delphi XE11)

Hi everyone,
I'm using ReportBuilder with Delphi XE11 and I have a TppDBRichEdit component with Stretch enabled on a band. The stretch behavior works correctly on one PC, but on another PC the RichEdit content does not stretch/expand the band properly — the text gets cut off or the band height doesn't adjust to fit the content.
Environment:

Delphi XE11
ReportBuilder version: [22]
Windows 10/11 on both machines

What I've checked so far:

Both machines have the same ReportBuilder version/build deployed
The RTF content and fonts appear to be the same
Default printer setup may differ between the two PCs (one might not have a printer installed)

Questions:

Is the Stretch calculation for TppDBRichEdit dependent on the default printer's device context (Canvas)? If so, does ReportBuilder require a printer driver to be installed to compute accurate text metrics?
Could differences in the RichEdit DLL between Windows installations cause inconsistent height/stretch calculations?
Is there a recommended way to force a specific RichEdit DLL version to be used by TppDBRichEdit, to ensure consistent behavior across different machines?

Any guidance on how to make the Stretch behavior consistent regardless of the target machine's printer configuration or installed RichEdit DLL version would be greatly appreciated.
Thanks in advance!

Comments

Sign In or Register to comment.