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

DBRichText, Color Problem

edited December 2001 in General
Hi,

I'm using Delphi Pro 6.0 (update1)
Reportbuilder Std 6.01

I'm using a DBRichText within a region and am would like the background
colour of the DBRichText to match that of the region.

I have tried making the DBRichText transparent. this works in preview
but not on the printer. (I gather this is a common printer driver problem)

If I set Transparent =false & set the color of the DBRichText at design
time to match that of the region, a small amount at the start of the
DBRichText changes colour, but the majority is always white.

I'm guessing that the brush of the font is always white, but I can't find
out how to acces this property to change it!.

I realise this is easy with a non-richtext component , but i need richtext

Any ideas appreciated
Thanks

Paul Green

Comments

  • edited December 2001
    Transparency is not supported on most printers. Don't know of any other way
    to do this with rich text in RB. I tried using Infopower rich edit support
    but the transparency still wasn't coming through on our Lexmark(it never has
    worked in the past). Our HP Laserjet 5 prints just fine(has always worked in
    the past). Seems as if we're at the mercy of the printer driver writers.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited December 2001
    Hi Jim,

    Thanks for the reply.

    If I abandon transparency and set it to false ,how can I set the color
    of the background of a DBRichtext? No matter what colour I choose,
    It only seems to colour a small portion of the control at the beginning.
    Everwhere else is always white. Any Ideas?

    Cheers
    Paul



    ----- Original Message -----
This discussion has been closed.