I am thinking someone out there must have already developed this....
I am using Report Services to generate checks and need to convert the $ amount into words on the "Pay To" line.
I searched Google and found a couple of VB/ASP routines that do this, but I would need to do it via a SQL Proc since the reporter does not provide the capability to reference and/or call custom VB functions from within.
Does anyone have / know of SQL function that may be publicly available or are willing to share that does this or perhaps can suggest a better way to handle?
Thanks.
If you use SQL Server Reporting Services, then you could add VB Code functions and then use it in your Expressions.
Also you could create .NET Stored procedures/user defined functions and use it in you Transact-SQL code.
|||It is absolutely amazing. Just by typing in 'sql function amount to words' into the Google? search bar, I got back dozens of hits, these look like good possibilities.
http://www.novicksoftware.com/udfofweek/Vol1/T-SQL-UDF-Volume-1-Number-46-NumberToWords.htm
http://www.devx.com/vb2themax/Tip/19053
http://code.filehungry.com/product/languages/sql/miscellaneous/123_tsql_functions
Thanks. I figured out that even though the project explorer didn't list class as a new type of item which could be added, I could add a class to the reports project via the menu.
Appreciate your help,
Annette
|||Funny how I did exactly the same Google search and didn't get the same results (or perhaps they were not listed on the first few pages I checked (there were 10 pages of results).
Google is definitely our friend and so are people like yourself who take the time to answer these posts.
Thank you,
Annette
No comments:
Post a Comment