Matthew Scott: Application Development using the Open XML File Formats
- Posted: Nov 07, 2006 at 1:19 PM
- 69,916 Views
- 17 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
In this video we talk with Matthew Scott, a developer on the Word team who takes us through the design and development of the Word 2007 Content Control Toolkit, an application that natively reads and writes Word documents saved in the Open XML file format. This application has been released to the developer community on Codeplex as an open source project, with full C# source code.
The content control tookit is a real-world example of working with the new Office Open XML file formats via the new System.IO.Packaging API in the .NET 3.0 framework. It’s also a very handy tool for developers, providing the ability
to map content controls to custom XML nodes through a simple drag&drop interface. Matt explains the architecture of the tool, shows how to use it, and then goes through some of the source code to demonstrate various best practices for Open XML
Links:
Project homepage
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?
Very nice. Working with openxml directly will make me a happy man.
Its great to also get a hold of some real code to work with openxml.
Btw, if you need answers to any specific questions about Open XML development, post them in the forums on www.OpenXmlDeveloper.org.
Only thing is I couldn't quite grasp the url for the open source tool for opening up docx files:s
Thanks nbradshaw! You can download the tool from it's CodePlex project homepage here: http://www.codeplex.com/dbe
The source code as well as documentation is also available for download from the Releases page.
Thanks
Matt
Robert
In the presentation, you show a very complex sample document with a lot of content controls in it. Would you share the document with us so that we see some of really complex samples. If not, maybe give us some links that we can find similar docx with complex content controls.
Thanks.
John:)
Only one criticism - you guys should really look into screen capture for your dems. Videoing a screen makes it very hard to read what you are seeing. Or is that just my eyesight and my age?
Thanks Matt.
Do you have a good source for docx parsing? I need chunk up sections between "Headers" and upload them to a SharePoint site. Do you have anything I can use/reference for this? I need to be able to parse out the formatting/Images associated with each Header section. Thanks,
PL
how do we bind images to image content control through customXml ?
Matthew, Thank you for the post. It's really helpful and this is powerful technology. The data in your example is a single item, I'm finding it very difficult to find documentation to see exactly how a customxml doc can be dropped into the package that has varying numbers of child elements (e.g. perhaps <order><item1>...<item2>.. etc ) that could display as a single row in a table that is expanded or in say their own unique table.. any thoughts on where I might go to find an example of this? Thank for all your help!!
Jeremy
How does Microsoft's decision to remove Custom XML affect this method of document injection? I have a working solution very popular with my customers based on the ideas presented in this post and others. I do not know what my options are now that Custom XML is to be removed? I would imagine that Content Controls are here to stay... the question is "what can I bind them to if not Custom XML"?
http://www.computerworld.com/s/article/9142627/Microsoft_yanks_Custom_XML_from_Word_offers_patch_to_OEMs?taxonomyId=1
Hi Wadebee, Custom XML Parts will not be removed. So your solution might be safe. Here's more information:
http://blogs.technet.com/gray_knowlton/archive/2009/12/23/what-is-custom-xml-and-the-impact-of-the-i4i-judgment-on-word.aspx
Hi Jeremy
Unfortunately there is no support for bound repeating tables.
Thanks
Matt
Hi Pdlevine
Yes, try this SDK:
http://www.microsoft.com/downloads/details.aspx?FamilyId=C6E744E5-36E9-45F5-8D8C-331DF206E0D0&displaylang=en
Thanks
Matt
What a wonderful presentation! As a lowly end user interested in making Word keep track of data and make use of data, I really appreciated the chance to listen in on the behind-the-scenes beauty of separating the form from the content. Really clear, really helpful. Just thought you should know that even end users appreciate your work.
Remove this comment
Remove this thread
close