i'm trying to print the text from a multi line text box. i tried Printer.Print Text1.Text however, that just printed the first line and stopped. is there a simple way that i am overlooking to get it to print the entire contents? let me know what i'm doing wrong
I have no frickin clue. I would think that would work. However, you can try a cheap fix.
Data = Text1.Text
Printer.Print Data
If that doesn't work, try this:
Lines = Split(Text1.Text, vbcrlf)
For X = 0 To UBound(Lines)
Printer.Print Lines(X)
Next
the first one gives me the same result, just prints one line and stops, the second one won't work, it doesn't recognize "Split". i'm using vb4, probably to old, i imagine
neo, shut up. He's talking about TEXT BOXES not LIST BOXES.
(in reply to neo's post which he's later deleted which stated something along these lines - SR did a goof. All you need is: <insert code to print the contents of a list box>)
hrm... you know what... I think it is worth a try doing this... Print Me.Text1
and if that bitches at you try Print Me.Text1.Text
/e shrugs...
Essentially that's the same thing as "i tried Printer.Print Text1.Text" and will not work any better.
yah... To the newest version of VB but maybe not the older?
yeeeeeeees neo, that's what backslash said:
"i'm using vb4, probably to old, i imagine"
and that's why I didn't further help the guy.