|
|
Browse by Tags
All Tags » OpenXmlSdk (RSS)
-
Microsoft Word 2007 allows you to lock a document, prohibiting users from making changes to content, while allowing them to add comments. If we have multiple documents that have the same content yet different comments, we can merge those comments into Read More...
|
-
[Blog Map] When thought of in a certain way, XML documents come in two flavors – data-centric and document-centric. Further, there are two types of document-centric documents. This post presents my thoughts about approaches to various types of document-centric Read More...
|
-
[BlogMap] Sometimes we want to compare two word processing documents to see if they contain the same content. I’m working on a blog post to merge comments from multiple Open XML documents into a single document. This is based on a feature in Word 2007 Read More...
|
-
I’ll be presenting a talk on LINQ and Open XML at TechEd 2009. The session is “OFC403 Developing Office Client Solutions Using LINQ and Open XML”. I’ll be presenting on Thursday, 5/14, at 4:30PM in Room 411. Here is the abstract for the talk: In this Read More...
|
-
There is an interesting approach that we use in PowerTools for Open XML that makes it easy to write cmdlets that modify Open XML documents. This approach isn’t very complicated, but aspects of this approach need some explanation so that developers who Read More...
|
-
DocumentBuilder is an example class that’s part of the PowerTools for Open XML project that enables you to assemble new documents from existing documents. One of the problems to solve when moving markup from one document to another is that of interrelated Read More...
|
-
TextGlow is a Silverlight viewer for Open XML word processing documents developed by Intergen , a Microsoft Partner. Last Monday, Gray Knowlton posted about the availability of the source code for the TextGlow Silverlight viewer on OpenXmlDeveloper.org . You could use this code to put together a web site that provides previews of Open XML word processing documents. I’m not familiar with the extent of fidelity that the TextGlow viewer provides, but it looks pretty good. This code is released under Read More...
|
-
Today, I’m pleased to announce the release of PowerTools for Open XML V1.1. PowerTools for Open XML is an open source project on CodePlex that makes it easy to create and modify Open XML documents using PowerShell scripts. I introduced the PowerTools for Open XML in June 2008 in the post, Automated Processing of Open XML Documents using PowerShell . That post contains a screen cast that demonstrates the functionality in the initial release. You can find a list of all cmdlets in PowerTools for Open Read More...
|
-
There is a new article, Use XSLT to transform XML to OpenXML , on the OpenXmlDeveloper.org web site on using XSLT to create Open XML documents. With this approach, you first create a template of the document that you want to create, with all appropriate styles, etc. You retrieve the main document part from your ‘template’ document, and create an XSLT using it as the base. You then modify the XSLT, using appropriate XSLT constructs to inject content at relevant places. You then use a small C# program, Read More...
|
-
One of the most effective ways to generate Open XML documents, spreadsheets, or presentations is to start with a ‘template’ document and then modify the document. For instance, you can start with a blank word processing document that is set up with your Read More...
|
-
[Blog Map] In two previous posts, I developed a somewhat involved query to search through a word processing document for style names and/or paragraph content. This is a query that I’m developing for the PowerTools for Open XML project . In those posts, as I evolved the query, I showed each iteration of it, highlighting the changes I made. This post continues modifying that query: First, I added a few tests that cause complete code coverage given the attached source document. Second, I changed the Read More...
|
-
I believe that it is easier to maintain code that is written in the functional style. For one thing, this is the very reason for many of the characteristics of functional code. No state is maintained, so we don’t have to worry about corrupting any state. If a variable is in scope, then the variable has its value, and it will never have another value. And the idea of composability is all about being able to inject/surround/refactor code without making it brittle. In this post, I’m going to show the Read More...
|
-
About a week ago, I posted a very interesting guest post by Bob McClellan , where he discussed some code that allows you to more easily move/insert/delete paragraphs in Open XML documents. He is in the process of putting together a PowerShell cmdlet that demonstrates this functionality within the PowerTools for Open XML open source project. Having PowerShell cmdlets that enable us to slice and dice Open XML documents is super. However, it is only half the story, in the context of PowerShell. The Read More...
|
-
We can potentially make extensive modifications to Open XML word processing documents. Many scenarios would benefit from the ability to move paragraphs around (both inter and intra-document), insert paragraphs, and delete paragraphs. In practice, the process can be quite daunting because paragraphs often contain markup that refers to something outside of the paragraph. For example, a paragraph might contain markup indicating that a comment begins inside that paragraph. But because the comment ends Read More...
|
-
At TechReady8, I’ll be presenting a 400 level course “Developing Office Client Solutions using LINQ and Open XML”. TechReady8 is a Microsoft employee only event, but non-Microsoft folks in the Seattle area can come see the same talk at the .NET Developers Association of Redmond meeting on January 19 th . This talk will be at 7:00PM, in Microsoft Building 40, Steptoe Room #1450. You can find more information at www.dotnetda.com . Here is the abstract for the talk: Developing Office Client Solutions Read More...
|
|
|
|