Your browser does not seem to support CSS. If images appear below, please disregard them.
toggle
February
S M T W T F S
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29
Sponsored Links
Latest Postings
Topic Options
Rate This Topic
#17742 - 11/05/02 09:28 PM Printing Multi-Lline Text Boxes
Joined: Mar 2002
Posts: 599
BackSlash Offline
UGN's Resident Homo
BackSlash Offline
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."
Top
Sponsored Links
#17743 - 11/06/02 07:51 PM Re: Printing Multi-Lline Text Boxes
Joined: Mar 2002
Posts: 1,273
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
Top
#17744 - 11/07/02 01:11 AM Re: Printing Multi-Lline Text Boxes
Joined: Mar 2002
Posts: 599
BackSlash Offline
UGN's Resident Homo
BackSlash Offline
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."
Top
#17745 - 12/07/02 06:45 PM Re: Printing Multi-Lline Text Boxes
Joined: Mar 2002
Posts: 1,273
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: )


Domain Registration, Hosting, Management
http://www.dollardns.net
Top
#17746 - 12/12/02 02:36 PM Re: Printing Multi-Lline Text Boxes
Joined: Mar 2002
Posts: 256
ninjaneo Offline
UGN Security Staff
ninjaneo Offline
UGN Security Staff

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

Top
#17747 - 12/22/02 02:57 PM Re: Printing Multi-Lline Text Boxes
Joined: Mar 2002
Posts: 256
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...

Top
#17748 - 12/22/02 10:03 PM Re: Printing Multi-Lline Text Boxes
Joined: Mar 2002
Posts: 1,273
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
Top
#17749 - 01/04/03 02:30 AM Re: Printing Multi-Lline Text Boxes
Joined: Mar 2002
Posts: 256
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?

Top
#17750 - 01/04/03 07:21 PM Re: Printing Multi-Lline Text Boxes
Joined: Mar 2002
Posts: 1,273
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
Top

Member Spotlight
Gremelin

Gremelin
Portland, OR; USA
Posts: 7,194
Joined: February 2002
Show All Member Profiles 
Forum Statistics
Forums46
Topics43,978
Posts79,152
Members2,157
Most Online1,567
Apr 25th, 2010
Top Posters(All Time)
UGN Security 37,141
Gremelin 7,194
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Newest Members
Herbert_Sherbert, codemauve, Lillysdragon1984, Brewwit, boa
2157 Registered Users
Who's Online Now
0 registered members (), 2 guests and 1 spider.
Latest News