-
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"
-
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]
-
Thanks
------------------
OmarSwan
[email protected]
http://omarswan.cjb.net
To God Be The Glory