|
-
Jul 4th, 2001, 09:31 PM
#1
Thread Starter
Hyperactive Member
who knows about text...
Anyone know how I can automaticly put a pagebreak every so many lines in my textbox. Keep in mind, it must be a normal textbox...
-
Jul 4th, 2001, 09:38 PM
#2
Sort of like this? :
VB Code:
Private Sub PrintText()
Dim ArrTemp() As String
arrTemp = Split(Text1.Text, vbCrLf)
For x = 0 To UBound(arrTemp)
Printer.Print arrTemp(x)
Printer.NewPage
Next x
Printer.EndDoc
End Sub
That prints one line on each page, just come up with a simple counter to put x amount of lines on each page
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jul 4th, 2001, 09:44 PM
#3
Thread Starter
Hyperactive Member
what I am aiming for here is to print a text box, but at the top of each page, since the textbox will be more then one page, have a header. So, I need to make a loop or something to seperate the textbox into a few different sections about one less then how many fit onto the page.
-
Jul 4th, 2001, 10:17 PM
#4
Thread Starter
Hyperactive Member
crptcblade, i have been playing with your code. But even though I changed the value of x, only 2 lines print. What am I missing?
-
Jul 4th, 2001, 10:18 PM
#5
Thread Starter
Hyperactive Member
-
Jul 4th, 2001, 10:34 PM
#6
Thread Starter
Hyperactive Member
guess i have got a problem!
-
Jul 4th, 2001, 10:42 PM
#7
Thread Starter
Hyperactive Member
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
|