Wednesday, May 5, 2010

Content Controls and Open Xml 2.0 SDK

 

I’ve been working on Microsoft Word automation, Open Xml, Microsoft.Office.Interop.Word and Open Xml 2.0 SDK. In this blog I’ll focus on Content Controls and Open Xml 2.0 SDK from the experience I gained in last 2 months

In this blog I’ll discuss the points mentioned below

  • Add Custom Xml part to WordprocessingDocument
  • Get Custom Xml part from WordprocessingDocument
  • Each content control contains a unique ID that is assigned by Word upon creation of the content control (Issues this may cause and how it can be handled)
  • Convert in-memory Document to Bytes without saving to a File

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 .Net Framework 2 (and Drawbacks)
  • Solution using .Net Framework 3.5 using Lambda Expressions
  • Summary