|
-
Jan 12th, 2000, 05:24 AM
#1
Thread Starter
Addicted Member
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"
-
Jan 12th, 2000, 05:58 AM
#2
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]
-
Jan 12th, 2000, 07:05 AM
#3
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|