Using the SharePoint 2010 Client Object Model with Open XML
The SharePoint 2010 Managed Client Object Model is a set of .NET managed libraries that allow us to write code for client computers to work with many of the common objects in our SharePoint sites. Programs running on the client can add and remove lists, add, update, and delete list items, modify documents in document libraries, create sites, manage permissions of items, add and remove web parts from a page, and much more.
This blog is inactive.
New blog: EricWhite.com/blog
Blog TOCOpen XML, the document format of Office 2007 and 2010, is an ISO/IEC standard (IS29500), which describes the internals of word-processing, spreadsheet, and presentation documents. Open XML files are stored per the Open Packaging Conventions specification (Part 2 of IS29500). They are essentially ZIP files that contain XML parts inside. The Open XML SDK is a .NET managed library that makes it easy to write programs to create, modify, or query Open XML documents. At the end of this article, I’ve listed a number of resources to help you get started using the Open XML SDK 2.0.
I've written an MSDN article, Using the SharePoint Foundation 2010 Managed Client Object Model with the Open XML SDK 2.0, which tells you how to work with Open XML documents that are stored in SharePoint document libraries.
That article is a follow-on article to Using the SharePoint Foundation 2010 Managed Client Object Model, which provides basic information about how to use the SharePoint Managed Client Object Model.
Comments
Anonymous
December 28, 2009
Thanks a lot for much needed information.Anonymous
December 29, 2009
HI Eric, I am trying to use your example to download file from document library using a silverlight project.In silverlight dll I am unable to get, FileInformation class and SaveBinaryDirect() method. Please let me know some pointers how I can do same in silverlight.Till now I tried SaveBinary() but this is throwing me error 'Parameter:Content' can not be null. I am passing object of FileSaveBinaryInformation class as parameter. Thanks RuchiAnonymous
December 30, 2009
Hi Ruchi, I'm currently working on a blog post on this subject. I'll get this out as soon as possible. It may be a week or two... -EricAnonymous
March 02, 2010
Great post! I needed to upload a document and your code sample was just what I needed. Thanks!Anonymous
March 11, 2010
Hi Eric, Your blog is great for beginners in Client OM.I have a requirement to create a new folder in a document library using Client OM.Can you guide me on how to achieve this? Thanks and Regards. Chaitra.