|
|
Browse by Tags
All Tags » OpenXmlSdk (RSS)
-
ZDNet Asia recently interviewed Oliver Bell, Microsoft Asia-Pacific's regional technology officer. The story mentions Oliver's blog post on the value that custom schema support adds to the format. I can attest that I've had several conversations recently where customer's problems were solved by either custom XML parts that are bound to content controls, or embedded custom schema support. In addition, Ian Blackley, sales engineer at TX Text Control, comments on the momentum of Open XML: "We expect Read More...
|
-
Pranav released another drop of Open XML Diff . There are a couple of bugs fixed. Read about it here. This tool is a developer's friend. When I'm writing code to generate an Open XML Document, I know how I want the document to render in Word, but am unsure about which element or attribute to tweak. So I save a copy of a doc, modify it, save it again, and compare the two, it lets me know what I want to control programmatically. Read More...
|
-
This post presents a custom application page in SharePoint that uses Open XML, the Open XML SDK and LINQ to XML to accept revisions, remove comments, and remove personal information from an Open XML word processing document. The following 45 second screen-cast demonstrates the code presented in this post. Video: Using Open XML with SharePoint An approach that has interesting possibilities would be to create SharePoint workflows that query and modify Open XML documents. For example, you could write Read More...
|
-
This post presents a snippet of code to remove comments from an Open XML Wordprocessing document. Note: This post may be of interest to LINQ to XML developers, as it contains some information that helps you write queries that perform better. In the case of very large documents, the approach described below performs much better than other approaches. The code is very simple: remove all w:commentRangeStart, w:commentRangeEnd, and w:commentReference elements in the main document part, and then remove Read More...
|
-
This post presents some code to remove personal information from an Open XML word processing document. Note: this post contains interesting information for LINQ to XML developers even if you are not interested in removing personal information from a document. It demonstrates some easy ways to write robust code in LINQ to XML that behaves properly even if we don't know the original state of the document. For instance, it shows how to write very short, robust code to remove an element that doesn't Read More...
|
-
In this post, I present some code that uses the Open XML SDK and LINQ to XML to accept all revisions in an Open XML word processing document. So, for example, if we have this document: And we run this code, the document then looks like this: The main part of the work when accepting revisions is to delete a bunch of nodes, however, there are other tasks to accomplish. In the attached code, you will see that in one case with inserted text, we need to move child nodes of the w:ins element up to the Read More...
|
-
This is a fun, geeky post for those interested in functional programming. Sometimes you have flat data where there is hierarchy expressed in the data, but the form of the data is flat. You may need to transform this data into a hierarchy, such as an XML tree. For instance, you may have the following data: Heading [] headings = new [] { new Heading { Level = 1, Text = "Intro" }, new Heading { Level = 2, Text = "Hello" }, new Heading { Level = 2, Text = "Summary" }, new Heading { Level = 1, Text = Read More...
|
|
|
|