Articles + Posts (Month: January 2018)
- 13 Jan, 2018
- Generating MS Word documents programmatically using placeholders in a template
- One of the many apps I find myself writing (repeatedly) are tools for generating MS Word documents using an existing document as a template. This solution does not use MS Word or Office interops.
- 07 Jan, 2018
- Using Episerver CMS as a makeshift API – Part 1, Get All Pages
- At the end of last year (between Christmas and New Years), I had the task of auditing all the pages in an installation of Episerver. The problem was that the Service API wasn't installed and the possibility of deploying code to the server was pretty slim. This got me thinking about the feasible solutions.
- 03 Jan, 2018
- C#: Using WebBrowser to take screenshots of web pages programmatically
- Do you need to take screenshots of numerous web pages? Yes? Then this article is for you. You can take screenshots of web pages programmatically using the WebBrowser class (System.Windows.Forms). Let's get straight to the code.
- 01 Jan, 2018
- C#: Using HttpWebRequest to interact with websites
- In this article I'm going to show the usage of the HttpWebRequest and HttpWebResponse classes and how you can use it to interact with websites. I'm going to be focusing on retrieving text responses (or the source code of a web pages) and not binary files. I'm also not going to be mentioning WebClient or HttpClient, they may be an article for another time. At the end of the article I'm sharing a helper class.