Watermarking

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

Watermarking

Post by pgkammath » Mon Mar 18, 2019 5:13 am

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: 14562
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Watermarking

Post by Sergey Tkachenko » Mon Mar 18, 2019 7:50 am

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: 11
Joined: Fri Nov 24, 2017 6:16 am

Re: Watermarking

Post by pgkammath » Mon Mar 18, 2019 10:16 am

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: 14562
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Watermarking

Post by Sergey Tkachenko » Mon Mar 18, 2019 12:04 pm

You can remove background bitmap by assigning
RichViewEdit1.BackgroundBitmap := nil;
Or you can hide by assigning
RichViewEdit1.BackgroundStyle := bsNoBitmap;

pgkammath
Posts: 11
Joined: Fri Nov 24, 2017 6:16 am

Re: Watermarking

Post by pgkammath » Mon Mar 18, 2019 3:39 pm

Thanks Sergy. I will try it out.

Regards
Prabhakar G Kammath

Post Reply