Archives for the 'C#' Category
Database-Driven Multilingual Crystal Reports
I wrote some code that parses Crystal Reports text objects and translates them to another language. It reads from a Hashtable which may be populated from a database, a text file or an XML document. The code doesn't care about the names of the text objects, just their contents.
You may have to use the String.Trim() [...]
C# 2.0 Amount In Words
I have translated Terry Voss' VB.NET 57 to Fifty Seven to C# 2.0 and also extended it somewhat. You can now change the currency units via the MajorCurrencyUnitSingular, MajorCurrencyUnitPlural, MinorCurrencyUnitSingular and MinorCurrencyUnitPlural properties/parameters. With the plural and singular forms, it should be able to handle a wide range of currencies such as the pound sterling [...]