Monday, July 07, 2008

Office Programming: Two Namespaces for navigation Package

There are two namespaces to leverage on when developing office application

  • System.IO.Packaging in WindowsBase assembly and it is part of .NET framework 3.0 and 3.5
  • DocumentFormat.OpenXml.Packaging is in DocumentFormat.OpenXml assembly which is part of OpenXml SDK

Eric White has a very good post on the difference of the two namespaces

The two namespaces serve the same purpose as to provide API to navigate within OpenXml document package, the difference is that DocumentFormat.OpenXml.Packaging provides strongly typed classes ie. WordProcessingDocument, SpreadSheetDocument, PresentationDocument, while System.IO.Packaging doesn't.


Resources for System.IO.Packaging

Resources for DocumentFormat.OpenXml.Packaging

No comments: