PDA

Click to See Complete Forum and Search --> : Printing - Detecting End of Page???


omarswan
Jan 12th, 2000, 04:24 AM
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

omarswan@yahoo.com

http://omarswan.cjb.net (http://www.omarswan.cjb.net)

"Jesus is Lord"

Aaron Young
Jan 12th, 2000, 04:58 AM
You could check the Printer Object's CurrentY value which indicates the Print Cursors Vertical Position on a Page, ie, something like:

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
aarony@redwingsoftware.com
ajyoung@pressenter.com

omarswan
Jan 12th, 2000, 06:05 AM
Thanks

------------------
OmarSwan
omarswan@yahoo.com
http://omarswan.cjb.net (http://www.omarswan.cjb.net)
To God Be The Glory