Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add watermark at runtime

Status
Not open for further replies.

keenanbr

Programmer
Oct 3, 2001
469
IE
Is it possible to add a watermark to a word document at runtime?
 
Sorry for the delay in getting back to you. I have an application which produces word documents (using templates) which are sent out to our clients. Some documents (because of certain business rules) are not to be sent out but they have still to be produced. Currently I put a message in the header and footer sayin they have not to be sent. I would really like to put a water-mark on these docs.

Regards,
 
A watermark is just a graphic anchored in the header so if you already have logic to write to all the headers, instead of writing messages, just insert the picture.

To get some basic code to use as a starting point you can record yourself doing it but be aware that, in 2002 and 2003, built-in watermarks are handled in an unusual way not entirely accessible from VBA.

You might actually find it easier to put the watermark in the template and then delete it when you don't want it rather than add it when you do,

Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.

Professional Office Developers Association
 
Many thanks. Deleting watermark when not needed worked a treat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top