Watermarking

General TRichView support forum. Please post your questions here
Post Reply
pgkammath
Posts: 36
Joined: Fri Nov 24, 2017 6:16 am

Watermarking

Post by pgkammath »

Hi,
I want to put a water mark in a report to the effect that 'Provisional Report', 'Interim Report' etc. and then remove this water mark when the report is made final. Is there any way, to implement this. Kindly help. Thanks in advance.


Prabhakar G Kammath
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Watermarking

Post by Sergey Tkachenko »

Do you want to draw this text in a background? You can assign a background bitmap with this text, or you can use OnPagePrepaint event to draw it when printing (or exporting to PDF using third-party tools).
pgkammath
Posts: 36
Joined: Fri Nov 24, 2017 6:16 am

Re: Watermarking

Post by pgkammath »

Hi Sergey,
Thanks for the quick response. It will be enough if I can show this a an image, But can we remove that image once it is not required ?. I am also trying this out using printer drivers for PDF creation.

Regards,
Prabhakar G Kammath
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Watermarking

Post by Sergey Tkachenko »

You can remove background bitmap by assigning
RichViewEdit1.BackgroundBitmap := nil;
Or you can hide by assigning
RichViewEdit1.BackgroundStyle := bsNoBitmap;
pgkammath
Posts: 36
Joined: Fri Nov 24, 2017 6:16 am

Re: Watermarking

Post by pgkammath »

Thanks Sergy. I will try it out.

Regards
Prabhakar G Kammath
Post Reply