Utility to generate Word documents from templates using Visual Studio 2010 and Open Xml 2.0 SDK – Part 4

This is the fourth part of this series. The code is available for download at http://worddocgenerator.codeplex.com/. In Part 1 I discussed about Document generation using Content Controls and Open XML 2.0 SDK Creating Word templates Implementation and Samples In Part 2 I discussed about List of functionalities that can be achieved using the utility/source code…

2

How to use Pex and Moles to generate unit tests for a project having external dependency(WCF Proxy) using Visual Studio 2010 SP1

Source Code: In this post I’ll discuss about writing unit tests using Pex and Moles. Pex and Moles are Visual Studio 2010 Power Tools that help Unit Testing .NET applications. Pex automatically generates test suites with high code coverage. Right from the Visual Studio code editor, Pex finds interesting input-output values of your methods, which…

1

Utility to generate Word documents from templates using Visual Studio 2010 and Open Xml 2.0 SDK

This utility generates Word documents from templates using Content controls. The utility source code is available for download at http://worddocgenerator.codeplex.com/. It has been created in Visual Studio 2010 and uses Open Xml 2.0 SDK which can be downloaded from http://www.microsoft.com/download/en/details.aspx?id=5124. The next parts in this series are In Part 2 I have discussed about List…

29

How to choose between IDisposable, IComponent, Component, MarshalByValueComponent and Control while implementing a Class

In this article I’ll discuss about the criteria behind choosing IDisposable, IComponent, Component, MarshalByValueComponent and base Control classes(System.Windows.Form.Control and System.Web.UI.Control) while implementing a Class. Prior to discussing further I’d like to share the reason behind this article. I ran code analysis in a project code and got a warning that Dispose was not called for…

3

INotifyPropertyChanging and INotifyPropertyChanged in Real Life using Expression Trees

Functional Requirements: Requirements when we need to achieve any or all of the functionalities listed below Undo/Redo functionality in an Application Any of user interface patterns e.g. MVC, MVP, MVVM etc Other patterns State Pattern, Events, Event handlers etc. In this blog I’ll discuss the points mentioned below Sample Scenario High level Solution Solution using…

0