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

TppShape's background color prints wrong with Brush.Style property set to bsDiagCross

edited July 2006 in General
Hello, everybody!
What I'm using: Delphi 2005 and ReportBuilder?9.01.
I have a TppShape in my report and I set its Brush.Style property to
bsDiagCross. The background color of the shape is white and I can see
the lines crossing in the designer and in the preview at runtime, but
when I print the report the background color of the shape becomes black,
not white. I really have no idea about what's hapenning.
How can I solve this problem?
Thank you very much.

Marcos



--- posted by geoForum on http://delphi.newswhat.com

Comments

  • edited July 2006
    Hi Marcos,

    This issue was solved for ReportBuilder 10.0 however it re-appeared in later
    versions. It will be fixed for the next maintenance release of
    ReportBuilder (10.04).

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2006
    Is there any workaround that I can do? I'm afraid I won't be able to
    upgrade to RB 10.04 as I have other third party components that depends
    on Delphi 2005.
    Thank you.

    Marcos

    later
    to
    black,



    --- posted by geoForum on http://delphi.newswhat.com
  • edited July 2006
    Hi Marcos,

    Unfortunately I am unaware of any workarounds at this time. The issue with
    the brush style is that there is a Windows defined color behind it. When
    the brush style is one that can be seen through, this color is exposed.
    Some printers seem to have this color defaulted to black. You may be able
    to use the SetBKColor and SetBKMode windows API routines in an event before
    the shape prints to override this behavior.

    --
    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.