Results 1 to 3 of 3

Thread: [Resolved] Need Help centering Watermark!!!! (Still!)

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 1999
    Location
    Sunny Southern Weather
    Posts
    406

    Exclamation [Resolved] Need Help centering Watermark!!!! (Still!)

    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 think that the Printer.TextHeight and Printer.TextWidth methods return inaccurate info...
    I've also tried GetTextExtentPoint32 with the same results.

    See the attached code.

    Anyone trying this??
    Last edited by wayneh; Oct 20th, 2004 at 06:33 PM.

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    May 1999
    Location
    Sunny Southern Weather
    Posts
    406
    Still need help on this - Anyone???

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 1999
    Location
    Sunny Southern Weather
    Posts
    406
    Anyone?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width