Printing Multi-Lline Text Boxes

Posted by: BackSlash

Printing Multi-Lline Text Boxes - 11/05/02 04:28 PM

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
Posted by: SilentRage

Re: Printing Multi-Lline Text Boxes - 11/06/02 02:51 PM

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
Posted by: BackSlash

Re: Printing Multi-Lline Text Boxes - 11/06/02 08:11 PM

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
Posted by: SilentRage

Re: Printing Multi-Lline Text Boxes - 12/07/02 01:45 PM

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: )
Posted by: ninjaneo

Re: Printing Multi-Lline Text Boxes - 12/12/02 09:36 AM

god damnit
Posted by: ninjaneo

Re: Printing Multi-Lline Text Boxes - 12/22/02 09:57 AM

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...
Posted by: SilentRage

Re: Printing Multi-Lline Text Boxes - 12/22/02 05:03 PM

Essentially that's the same thing as "i tried Printer.Print Text1.Text" and will not work any better.
Posted by: ninjaneo

Re: Printing Multi-Lline Text Boxes - 01/03/03 09:30 PM

yah... To the newest version of VB but maybe not the older?
Posted by: SilentRage

Re: Printing Multi-Lline Text Boxes - 01/04/03 02:21 PM

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.