October 2007 Blog Posts

Generate Class From Config for C#

.NET configuration is great. But i don't really like working with ConfigurationManager.AppSettings, because i get annoyed: that i have to remember key names that i may accidentally make typos in the key names, and then spend time looking for it. I'd rather have a class with all my configuration items presented as properties, so i can enjoy intellisence when reading my app settings. There are two options here: Write a simple wrapper class that reads app settings and provides access to those via properties Write a custom configuration provider with would...

Convert RTF to PDF

I didn't write anything in September because my wife and i had our first baby born on the fifth - a little boy. It took about a month to get used to the new way of life. In a word: it's great! Absolutely unimaginable experience! I'm looking forward to the many years raising the baby. I'm now trying to get back doing things i did before the baby and, surprisingly, i can! Anyway, i have been researching some options for converting RTF (of any other Word-compatible format) files to PDF via command line. I need to automate some PDF creation on the...