This example illustrates how you can add a watermark to the document. The main idea is to add a corresponding Floating Object (TextBox or Picture) to the header section (see SubDocument essentials - simple examples). Take special note of the TextRenderer.MeasureText Method, which is used to calculate the correct size of a textual watermark.
See Also:
SubDocument.InsertPicture Method
SubDocument.InsertTextBox Method
Question Comments
Added By: TRAINEAU SOIZIC at: 10/24/2012 3:42:24 AM
Don't work for me with the last build :
the text on the page (the real one : not the watermark text) disapears from left to right when zooming ... try to set the zoom at 200 %
in fact it seems that it is a horizontal scrollbar problem ... try to zoom and play with Hscrolling
Added By: Anders Wang at: 9/4/2014 11:57:01 PMBut, After you save as it to word, You can see the layout is corrupted by the watermark. So how to deal with it?
Added By: Elliot (DevExpress Support) at: 9/5/2014 6:32:17 AMHello,
To process your recent post more efficiently, I created a separate ticket on your behalf: T147935: Corrupted document layout. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.