Results 1 to 3 of 3

Thread: Printing - Detecting End of Page???

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    NY, USA.
    Posts
    240

    Post

    When printing the contents of a textbox, what if the contents of the textbox could not hold on one page how could you detect when you have reached the end of a page.

    ------------------
    OmarSwan

    [email protected]

    http://omarswan.cjb.net


    "Jesus is Lord"



  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    You could check the Printer Object's CurrentY value which indicates the Print Cursors Vertical Position on a Page, ie, something like:
    Code:
    If Printer.CurrentY < (Printer.ScaleHeight - Printer.TextHeight("I")) Then
        'There is Space to Print Another Line
    Else
        'Not Enough Page, Start a New One
    End If
    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]


  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    NY, USA.
    Posts
    240

    Post

    Thanks

    ------------------
    OmarSwan
    [email protected]
    http://omarswan.cjb.net
    To God Be The Glory

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