| Joined: Mar 2002 Posts: 599 UGN's Resident Homo | UGN's Resident Homo Joined: Mar 2002 Posts: 599 | 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
"It's better to burn out, than to fade away."
| | |
▼ Sponsored Links ▼
▲ Sponsored Links ▲
| | | Joined: Mar 2002 Posts: 1,273 DollarDNS Owner | DollarDNS Owner Joined: Mar 2002 Posts: 1,273 | 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 | | | | Joined: Mar 2002 Posts: 599 UGN's Resident Homo | UGN's Resident Homo Joined: Mar 2002 Posts: 599 | 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
"It's better to burn out, than to fade away."
| | | | Joined: Mar 2002 Posts: 1,273 DollarDNS Owner | DollarDNS Owner Joined: Mar 2002 Posts: 1,273 | 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>) | | | | Joined: Mar 2002 Posts: 256 Likes: 1 UGN Security Staff | UGN Security Staff Joined: Mar 2002 Posts: 256 Likes: 1 | | | | | Joined: Mar 2002 Posts: 256 Likes: 1 UGN Security Staff | UGN Security Staff Joined: Mar 2002 Posts: 256 Likes: 1 | 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... | | | | Joined: Mar 2002 Posts: 1,273 DollarDNS Owner | DollarDNS Owner Joined: Mar 2002 Posts: 1,273 | Essentially that's the same thing as "i tried Printer.Print Text1.Text" and will not work any better. | | | | Joined: Mar 2002 Posts: 256 Likes: 1 UGN Security Staff | UGN Security Staff Joined: Mar 2002 Posts: 256 Likes: 1 | yah... To the newest version of VB but maybe not the older? | | | | Joined: Mar 2002 Posts: 1,273 DollarDNS Owner | DollarDNS Owner Joined: Mar 2002 Posts: 1,273 | 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. | | |
Forums41 Topics33,840 Posts68,858 Members2,176 | Most Online3,253 Jan 13th, 2020 | | | |