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

Strikethrough text incorrect in print preview - TppRichText

edited May 2013 in General
Hi,

Win7 + Delphi 7 + RB 11.07 Ent

I have a problem with strikethrough text in the RTF text (only in the print
preview). I use TppViewer and TppRichText. Generally, some of the
strikethrough text show up as not strikethrough. It highly depends on the
zoom value of the print preview, the bigger magnification is used, the more
chance to see all the strikethrough correctly, but not always. I assume
that it may be a problem with preview rendering - some of the horizontal
lines are skipped when the preview is scaled down.

The actual printout is OK.

Is it a known problem? Is there a solution for it?

Regards,
Jarek

Comments

  • edited May 2013
    Have not heard of this before. I cannot reproduce the issue in my testing
    here. You might try download a trial version of RB 14.08 for D7 and perform
    the same test. If you would like to create a simple example project that I
    can build and run here, I can test it with RB 14.08. Please use standard
    Delphi components and RB. Use the DBDemo data or dump some data to
    TClientDataSets. Send to support@ in zip format.


    -
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited May 2013
    Example sent. Thank you.

  • edited May 2013
    Example sent. Thank you.

  • edited May 2013
    Hi,

    Did you get my email?
    Where can I expect the answer, by email or here?

  • edited May 2013
    We usually respond to email by replying to the email. :)

    Your email was received. Have spent time researching it, but do not have a
    solution. As a work around, set Report.PrinterSetup.PrinterName to Screen.
    This will cause the screen device context to be used for report page
    generation and avoid the issue.

    RichText is rendered using the Windows RichEd DLL and we use the printer
    device context for wysiwyg. For preview we generate a metafile and scale the
    metafile to the screen resolution. For some reason Windows is not handling
    the strike through style correctly when scaling to the screen.


    -
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited June 2013
    Setting Report.PrinterSetup.PrinterName to Screen helps in most cases, but
    not all.
    After some testing the problem still exists with some scale values less
    than 100%.

This discussion has been closed.