473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Check Printing

Is there a method in VB .NET to convert a numeric dollar amount to it's text
equivalent for printing on a check?

Thanks,
-Carl
Nov 21 '05 #1
4 2745
Hi,

Dim dAmt As Decimal = CType(134.34, Decimal)

Trace.WriteLine(dAmt.ToString("c"))

Ken

------------------------

"Carl Tribble" <ca*********@sbcglobal.net> wrote in message
news:uE**************@TK2MSFTNGP14.phx.gbl...
Is there a method in VB .NET to convert a numeric dollar amount to it's text
equivalent for printing on a check?

Thanks,
-Carl

Nov 21 '05 #2
Thanks Ken, but what I am really looking for is a way to print the words
"One Hundred Thirty Four And 34/100" does VB .NET offer a way to do that?

-Carl
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:er**************@TK2MSFTNGP09.phx.gbl...
Hi,

Dim dAmt As Decimal = CType(134.34, Decimal)

Trace.WriteLine(dAmt.ToString("c"))

Ken

------------------------

"Carl Tribble" <ca*********@sbcglobal.net> wrote in message
news:uE**************@TK2MSFTNGP14.phx.gbl...
Is there a method in VB .NET to convert a numeric dollar amount to it's text equivalent for printing on a check?

Thanks,
-Carl

Nov 21 '05 #3
Hi,

No. Maybe this will help.
http://support.microsoft.com/default...b;en-us;234302

Ken
------------------
"Carl Tribble" <ca*********@sbcglobal.net> wrote in message
news:uJ**************@TK2MSFTNGP12.phx.gbl...
Thanks Ken, but what I am really looking for is a way to print the words
"One Hundred Thirty Four And 34/100" does VB .NET offer a way to do that?

-Carl
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:er**************@TK2MSFTNGP09.phx.gbl...
Hi,

Dim dAmt As Decimal = CType(134.34, Decimal)

Trace.WriteLine(dAmt.ToString("c"))

Ken

------------------------

"Carl Tribble" <ca*********@sbcglobal.net> wrote in message
news:uE**************@TK2MSFTNGP14.phx.gbl...
Is there a method in VB .NET to convert a numeric dollar amount to it's text equivalent for printing on a check?

Thanks,
-Carl


Nov 21 '05 #4

"Carl Tribble" <ca*********@sbcglobal.net> wrote in message
news:uE**************@TK2MSFTNGP14.phx.gbl...
Is there a method in VB .NET to convert a numeric dollar amount to it's text equivalent for printing on a check?


I had to write that code for a payroll program.
This should get you started:
Convert the Amount to a string, then group in three's from the decimal going
left - I called them 'chunks'
A couple of arrays for words
from "one" thru "nineteen"
and
from "twenty" thru "ninety" (by tens)
then look at the first 2 digits of each group - and go from there.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.770 / Virus Database: 517 - Release Date: 9/27/2004
Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Steven T. Hatton | last post by:
If you happen to have Accelerated C++ by Koenig and Moo, and haven't gotten around to reading it, I suggest you count the pages between page 18 and page 51. I came up with zero. This is very...
4
by: Geir Baardsen | last post by:
Hi! Is there any way to check if printer is active in access 2000? I have a report that is printing (local printer), and before I do anything more in code, I do want to check if printer is...
4
by: Suzanka | last post by:
Hello, I have an application written in C# on visual studio .NET. It is a web aplication. The application consists of many different forms, that users occassionaly want to print out for filing....
4
by: Arif | last post by:
I C# code prints very slow as compared to a third party barcode printing software. That software prints approximately 10 labels in 2 seconds while my C# code prints 10 labels in 5 to 6 seconds. And...
1
by: dzemo | last post by:
How to check is printer on LPT connected or not? txh -- ----------------------------------------------------------------------------------------------------------------------- Dzemal Tipura...
5
by: Tony | last post by:
Every 10 seconds I need to search a SQL table for orders to print. The orders are created through WebForms on ASP.NET clients. The orders should not print until 10 minutes before they are due. ...
6
by: Siv | last post by:
Hi, I am getting into printing with VB.NET 2005 and want to implement the usual capability that a user can select a selection of pages. I have a report that is generated by my application that if...
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
0
by: nikhilgargi | last post by:
Requirement: I need to provide printing capability in a C# desktop application that I am developing The documents that need to be printed can be in Rich Text Format (RTF) or HTML. Custom...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.