Previous Thread
Next Thread
Print Thread
Rate Thread
Printing Multi-Lline Text Boxes #17742
11/05/02 01:28 PM
11/05/02 01:28 PM
Joined: Mar 2002
Posts: 599
TN
BackSlash Offline OP
UGN's Resident Homo
BackSlash  Offline OP
UGN's Resident Homo

Joined: Mar 2002
Posts: 599
TN
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."
Re: Printing Multi-Lline Text Boxes #17743
11/06/02 11:51 AM
11/06/02 11:51 AM
Joined: Mar 2002
Posts: 1,273
OH, USA
SilentRage Offline
DollarDNS Owner
SilentRage  Offline
DollarDNS Owner

Joined: Mar 2002
Posts: 1,273
OH, USA
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
Re: Printing Multi-Lline Text Boxes #17744
11/06/02 05:11 PM
11/06/02 05:11 PM
Joined: Mar 2002
Posts: 599
TN
BackSlash Offline OP
UGN's Resident Homo
BackSlash  Offline OP
UGN's Resident Homo

Joined: Mar 2002
Posts: 599
TN
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."
Re: Printing Multi-Lline Text Boxes #17745
12/07/02 10:45 AM
12/07/02 10:45 AM
Joined: Mar 2002
Posts: 1,273
OH, USA
SilentRage Offline
DollarDNS Owner
SilentRage  Offline
DollarDNS Owner

Joined: Mar 2002
Posts: 1,273
OH, USA
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
Re: Printing Multi-Lline Text Boxes #17746
12/12/02 06:36 AM
12/12/02 06:36 AM
Joined: Mar 2002
Posts: 256
Likes: 1
CA, USA
ninjaneo Offline
UGN Security Staff
ninjaneo  Offline
UGN Security Staff

Joined: Mar 2002
Posts: 256
CA, USA
god damnit

Re: Printing Multi-Lline Text Boxes #17747
12/22/02 06:57 AM
12/22/02 06:57 AM
Joined: Mar 2002
Posts: 256
Likes: 1
CA, USA
ninjaneo Offline
UGN Security Staff
ninjaneo  Offline
UGN Security Staff

Joined: Mar 2002
Posts: 256
CA, USA
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...

Re: Printing Multi-Lline Text Boxes #17748
12/22/02 02:03 PM
12/22/02 02:03 PM
Joined: Mar 2002
Posts: 1,273
OH, USA
SilentRage Offline
DollarDNS Owner
SilentRage  Offline
DollarDNS Owner

Joined: Mar 2002
Posts: 1,273
OH, USA
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
Re: Printing Multi-Lline Text Boxes #17749
01/03/03 06:30 PM
01/03/03 06:30 PM
Joined: Mar 2002
Posts: 256
Likes: 1
CA, USA
ninjaneo Offline
UGN Security Staff
ninjaneo  Offline
UGN Security Staff

Joined: Mar 2002
Posts: 256
CA, USA
yah... To the newest version of VB but maybe not the older? frown

Re: Printing Multi-Lline Text Boxes #17750
01/04/03 11:21 AM
01/04/03 11:21 AM
Joined: Mar 2002
Posts: 1,273
OH, USA
SilentRage Offline
DollarDNS Owner
SilentRage  Offline
DollarDNS Owner

Joined: Mar 2002
Posts: 1,273
OH, USA
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

Member Spotlight
None yet
Show All Member Profiles 
Forum Statistics
Forums41
Topics33,680
Posts68,696
Average Daily Posts0
Members2,171
Most Online2,827
5 minutes ago
Latest Postings
Animation,
by JohanKaariainen. 08/15/19 12:18 AM
Top Posters(All Time)
UGN Security 41,392
Gremelin 7,203
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Liked Users (All Time)
§intå× Likes: 3
Black Beard Likes: 1
Cold Sunn Likes: 1
Crime Likes: 1
Cyrez Likes: 1
Dartur Likes: 1
fleshwound Likes: 1
Ghost Likes: 2
Girlie Likes: 1
Gremelin Likes: 14
Powered by UBB.threads™ PHP Forum Software 7.7.0