Tag Archives: C#

Be careful with Enum.Parse

You may want to be more careful using Enum.Parse as you may end up with some unexpected behavior like I did. Casting int to an invalid enum value doesn’t throw exception. Have a look at this code snippet running with … Continue reading

Posted in Software | Tagged | 1 Comment

Convert Word documents to PDF and XPS documents in .Net

In a previous old post actually two years ago I talked about converting HTML documents to Microsoft Word documents using the Microsoft Office application’s COM-based object model and it was very nice and easy task. But what about PDF? actually … Continue reading

Posted in Software | Tagged , , | Leave a comment

How to render asp.net control to HTML string by code

Sometimes you will need to programatically get the HTML markup of a server or a user control that normally will be rendered to the HTTP response by the ASP.Net framework. This can simply be done with something like this: This … Continue reading

Posted in Software | Tagged , | 7 Comments

Convert HTML to WORD in .Net

Last month I faced a requirement that needed some Word format generation. After a lot of searching for 3rd party components that was costing us lot of money 🙂 . I realized that the most simple and yet cheap is … Continue reading

Posted in Software | Tagged | 7 Comments