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

dbrichedit wysiwyg

edited May 2015 in General
Hi!
we need to print some richedit text from our program to report builder
in wysiwyg mode!
i put dbrichtext component in a report, set u.m. to screen pixel, and
so i create in our form a dbrichedit component with same width of
report builder component.

but result is not the same :( in print preview ( and sending to
printer ) chars in report are always larger than at screen delphi form
( it wraps more in repot than at screen).

have some idea to help us?
thanks!

ps: rb 16.01, delphi xe7.

Comments

  • edited May 2015
    Hi Diego,

    ReportBuilder tries to mimic on screen what you will see when you print
    to your printer. Your Delphi RichEdit will calculate text wrapping
    based on screen pixels. The report will do so based on the pixels of
    the printer defined in the Report.PrinterSetup, which is why they look
    different.

    If you would like them to look identical on screen, you will need to set
    your PrinterName to "Screen". This will measure text based on the
    screen however you will not be able to print your report.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.