Previous Thread
Next Thread
Print Thread
Rate Thread
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 ▼ ▲ 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


Domain Registration, Hosting, Management
http://www.dollardns.net
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>)


Domain Registration, Hosting, Management
http://www.dollardns.net
Joined: Mar 2002
Posts: 256
Likes: 1
UGN Security Staff
UGN Security Staff
Joined: Mar 2002
Posts: 256
Likes: 1
god damnit

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.


Domain Registration, Hosting, Management
http://www.dollardns.net
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? frown

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.


Domain Registration, Hosting, Management
http://www.dollardns.net

Link Copied to Clipboard
Member Spotlight
Gremelin
Gremelin
Portland, OR; USA
Posts: 7,204
Joined: February 2002
Forum Statistics
Forums41
Topics33,839
Posts68,797
Members2,177
Most Online73,244
Nov 9th, 2025
Latest Postings
Top Posters
UGN Security 41,392
Gremelin 7,204
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Likes Received
Ghost 2
Cyrez 1
Girlie 1
unreal 1
Crime 1
Powered by UBB.threads™ PHP Forum Software 8.0.0