Link to home
Start Free TrialLog in
Avatar of ucla11
ucla11

asked on

Printing the contentent of a TextBox

I have a form where after somr caculation are done the information is added to a textBox.  I want to place a button
on this form and when you click it. and it sends the text to the printer. How about doing the same with a listbox.

The text in the textbox is  like:

(100) ...One Hundred
(1,010)... One thousand Ten
(1,000,954)...One Million Nine Hundred Fifty Four
and so on

program converts numbers to text
Avatar of gary_j
gary_j
Flag of United States of America image

to send to the default printer unformatted

printer.print text1.text


for a list box

for i = 0 to listbox.listcount - 1
   printer.print listbox.list(i)
next 'i

always do a printer.enddoc

Avatar of Mikal613
do you need the conversion?
Avatar of ucla11
ucla11

ASKER

I found the code to convert numbers to text.  It seems everyone thinks i should use a RichTextbox.  I just need to  how to print the RchtTextBox.
ASKER CERTIFIED SOLUTION
Avatar of Sethi
Sethi
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial