Home Devices

Print preview doesn't match the printed document

edited October 2007 in Devices
Hello,
i use Delphi 7 and the problem is, that i have a report with printpreview
(device = screen)
The data and format (bold style) in the preview is correct. But if i use the
printbutton in the preview the wrong lines are printed in bold style.

How can I correct this?

Greets Ralf

Comments

  • edited October 2007
    Hi Ralf,

    This is not a known issue with ReportBuilder. Are you able to recreate this
    issue with a minimal report? (i.e. empty report with a label on in) Try
    commenting out all your event code and re-print the report. If this solves
    the problem, periodically begin adding the code back to isolate the problem.
    Also in some cases, the printed output may not exactly match the output on
    screen. Take a look at the article below.

    -----------------------------------------------------
    Article: Why Preview may not Match Printed Output
    -----------------------------------------------------

    ReportBuilder uses the Printer device context to perform all calculations
    required to generate the report pages. This includes measuring text,
    wrapping text, and calculating the vertical page space required by a
    stretchable component such as a memo.

    Using the Printer device context results in a very high degree of accuracy
    when printing to the printer. For report Preview, all page elements must be
    scaled back to the screen. A typical printer has a resolution of 600 pixels
    per inch (or more). A typical screen has 96 pixels per inch. Thus there is
    some loss of fidelity in rendering to the screen.

    For multi-line text such as memos, ReportBuilder sometimes shrinks the font
    size for the preview so that the rendered text can fit within the required
    vertical page space. Even when True Type fonts this is sometimes necessary.


    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

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