Check Printing

  • Thread starter Thread starter Carl Tribble
  • Start date Start date
C

Carl Tribble

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
 
Hi,

Dim dAmt As Decimal = CType(134.34, Decimal)

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



Ken

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

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
 
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
 
Carl Tribble said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top