Solved

Printing the contentent of a TextBox

Posted on 2004-10-14
4
160 Views
Last Modified: 2011-09-20
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
0
Comment
Question by:ucla11
4 Comments
 
LVL 5

Expert Comment

by:gary_j
ID: 12312986
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

0
 
LVL 48

Expert Comment

by:Mikal613
ID: 12314504
do you need the conversion?
0
 

Author Comment

by:ucla11
ID: 12315327
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.
0
 
LVL 18

Accepted Solution

by:
Sethi earned 250 total points
ID: 12315785
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now