Strikethrough text incorrect in print preview - TppRichText
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
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
This discussion has been closed.
Comments
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
Did you get my email?
Where can I expect the answer, by email or here?
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
not all.
After some testing the problem still exists with some scale values less
than 100%.