Board index » delphi » Printing a watermark on a report

Printing a watermark on a report

Anyone know how to best print a watermark on a report page using Delphi
4?  I've tried to do this using the printer's canvas Textout method
only to find that text that is printed over it "hides" portions of the
watermark rather than allowing the portion to show through their font
rectangle.  I've tried setting the copymode but that doesn't seem to
help either, (I believe because it only works when drawing bitmaps
etc., but not when using Textout).  Thanks a lot in advance.

Barry
Ba...@FireflySoftware.Com

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

 

Re:Printing a watermark on a report


Try:

  SetBkMode(Printer.Canvas.handle, TRANSPARENT);

.. this prevents the normal white background of a Font to cover the background pattern.
(Well, I have never tried it on a printer canvas, but try it !)

--

Bjoerge

<< barrybl...@my-deja.com skrev i meldingen <7lr215$qm...@nnrp1.deja.com>...
Anyone know how to best print a watermark on a report page using Delphi
4?  I've tried to do this using the printer's canvas Textout method
only to find that text that is printed over it "hides" portions of the
watermark rather than allowing the portion to show through their font
rectangle.  I've tried setting the copymode but that doesn't seem to
help either, (I believe because it only works when drawing bitmaps
etc., but not when using Textout).  Thanks a lot in advance.

Barry
Ba...@FireflySoftware.Com

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

Quote

Re:Printing a watermark on a report


Bj?rge, You are a genius. Thank you so much.  It works great!  I can't
believe I've been jumping through hoops the past couple of days over
this!!!

Barry

In article <fDbg3.615$Yi5.5...@news1.online.no>,
  "Bj?rge S?ther" <REMOVE_bsaet...@online.no> wrote:

Quote
> Try:

>   SetBkMode(Printer.Canvas.handle, TRANSPARENT);

> .. this prevents the normal white background of a Font to cover the
background pattern.
> (Well, I have never tried it on a printer canvas, but try it !)

> --

> Bjoerge

> << barrybl...@my-deja.com skrev i meldingen <7lr215

$qm...@nnrp1.deja.com>...

Quote
> Anyone know how to best print a watermark on a report page using
Delphi
> 4?  I've tried to do this using the printer's canvas Textout method
> only to find that text that is printed over it "hides" portions of the
> watermark rather than allowing the portion to show through their font
> rectangle.  I've tried setting the copymode but that doesn't seem to
> help either, (I believe because it only works when drawing bitmaps
> etc., but not when using Textout).  Thanks a lot in advance.

> Barry
> Ba...@FireflySoftware.Com

> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

Re:Printing a watermark on a report


Hi Barry,

   I have the same problem printing a watermark.

  Are you using QuickReport ?
  If so, in which event did you code the SetBkMode ?

   Thanks in advance,
                                Josir Gomes.

Quote
>Bj?rge, You are a genius. Thank you so much.  It works great!  I can't
>believe I've been jumping through hoops the past couple of days over
>this!!!

>Barry

>In article <fDbg3.615$Yi5.5...@news1.online.no>,
>  "Bj?rge S?ther" <REMOVE_bsaet...@online.no> wrote:
>> Try:

>>   SetBkMode(Printer.Canvas.handle, TRANSPARENT);

>> .. this prevents the normal white background of a Font to cover the
>background pattern.
>> (Well, I have never tried it on a printer canvas, but try it !)

>> --

>> Bjoerge

>> << barrybl...@my-deja.com skrev i meldingen <7lr215
>$qm...@nnrp1.deja.com>...
>> Anyone know how to best print a watermark on a report page using
>Delphi
>> 4?  I've tried to do this using the printer's canvas Textout method
>> only to find that text that is printed over it "hides" portions of the
>> watermark rather than allowing the portion to show through their font
>> rectangle.  I've tried setting the copymode but that doesn't seem to
>> help either, (I believe because it only works when drawing bitmaps
>> etc., but not when using Textout).  Thanks a lot in advance.

>> Barry
>> Ba...@FireflySoftware.Com

>> Sent via Deja.com http://www.deja.com/
>> Share what you know. Learn what you don't.

>Sent via Deja.com http://www.deja.com/
>Share what you know. Learn what you don't.

Other Threads