455,032 Members | 1,163 Online
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,032 IT Pros & Developers. It's quick & easy.

# Check Printing

 P: n/a 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 Replies

 P: n/a Hi, Dim dAmt As Decimal = CType(134.34, Decimal) Trace.WriteLine(dAmt.ToString("c")) Ken ------------------------ "Carl Tribble" 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

 P: n/a 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]" 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" 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

 P: n/a Hi, No. Maybe this will help. http://support.microsoft.com/default...b;en-us;234302 Ken ------------------ "Carl Tribble" 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]" 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" 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

 P: n/a "Carl Tribble" 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 discussion thread is closed

Replies have been disabled for this discussion.