Eric White's Blog RSS icon RSS icon

Open XML, SharePoint, and Office

March, 2011

Release of V2 of Doc Gen System: XPath in Content Controls

In this post, I release V2 of this simple document generation example. I provide a 2-minute screen-cast that shows the document generation process, generating 3000 documents in less than 30 seconds.

Posted in Document Generation Series, Open XML, WordprocessingML | 25 Comments »

Update Data behind an embedded Chart in an Open XML WordprocessingML Document

11 minute video that walks through the process of embedding a chart in a word-processing document, and then programmatically updating that data so that the chart reflects the new data.

Posted in Open XML, WordprocessingML | No Comments »

Replacing a Picture in a Picture Content Control in an Open XML WordprocessingML Document

Shows code to replace a picture in a picture content control in an Open XML WordprocessingML document.

Posted in Open XML, WordprocessingML | 4 Comments »

Importing HTML that contains Numbering using altChunk

It is possible to import HTML that contains bullets or numbering using atlChunk.  Word 2007 or 2010 imports the numbered items and creates the appropriate WordprocessingML markup, as well as necessary numbering styles, to create a word-processing document that looks as close as possible to the original HTML.  The following example alters a document by [...]

Posted in Open XML, WordprocessingML | 6 Comments »

Generating Open XML WordprocessingML Documents using XPath Expressions in Content Controls

Introduces the approach of configuring the document generation process by entering XPath expressions in content controls in a template document.

Posted in Document Generation Series, Open XML, WordprocessingML | 12 Comments »

Changing the Schema for this Open XML Document Generation System

Flexibility in a document generation system is very important to its usability.  We all know how it works.  You’ve been commissioned by the marketing department to put together a mailing to 50,000 customers.  After doing the work of putting together the template document, the marketing department *will* come ask for changes to the data and [...]

Posted in Document Generation Series, Open XML, WordprocessingML | No Comments »

Data Warehouse Book Recommendations

Some time ago, while still at Microsoft, I was involved in a small business intelligence project.  Many, many years ago, I was a database application developer, but times have changed.  I had to get up to speed on how to build and use a data warehouse in a hurry.  Fortunately, one of my best friends [...]

Posted in Book Recommendations | No Comments »

Getting Started with Open XML PowerTools Markup Simplifier

On OpenXmlDeveloper.org, in one of the forums, there is a thread about how to clean Word proofing errors clutter out of an Open XML WordprocessingML document.  In PowerTools, in the HtmlConverter project, there is a class called MarkupSimplifier, which can remove proofing errors.  In addition, it can simplify WordprocessingML markup in a variety of ways, [...]

Posted in Open XML, PowerTools, WordprocessingML | 5 Comments »

Release of V1 of Simple DOCX Generation System

I have completed a preliminary version of this simple DOCX generation system, which you can download, unzip, and try.  You can find the zip file that contains all necessary bits…

Posted in Document Generation Series, Open XML, WordprocessingML | 2 Comments »

Video of use of Document Generation Example

I have completed a rough first version of this document generation system that is driven by C# code that you write in content controls in a Word document.  As an intro, I’ve recorded a small screen-cast that shows the doc gen system in action. This post is the tenth in a series of blog posts [...]

Posted in Document Generation Series, Open XML, WordprocessingML | 3 Comments »