I've created some basic code that creates information along the edges of a page.
It also creates a diagonal 'watermark' across the face of the page.
I'm having trouble keeping the watermark centered when I change the watermark text.
For example, if I use "watermark", the text is positioned differently than if I use "NOT FOR DISTRIBUTION" - and neither are centered as they should be.
My code calculates the font size based on the text length.
Can someone help me figure out why my centering code does not work properly???
I need to be able to use any font, any text and still have the watermark be
centered on the digonal.
Please test your code - I will!
I think that the Printer.TextHeight and Printer.TextWidth methods return inaccurate info...
I've also tried GetTextExtentPoint32 with the same results.
Click this link do download my sample code...
Or contact me by email:
<email address removed - Bingie EE PE>