Skip to main content

Latest Articles: MsWord


Repeated Content Controls in a Table
Entry Date: May 2008 site: Codeplex Rating:
keywords:XML; Open XML; Office; Ms Word; VSTO;
Article Description:
I want to generate a template with a table and populate the table with some content controls perhaps on the top row of the table. I then want an XML file with a number of order lines in the data. Is there any way to add a single set of content controls e.g. OrderQty, ProductName, Price etc. and then get them to repeat for each order line in the XML data? or am I corrent in that this functionality is not yet supported?
Comments:

Office 2007 + Content Controls + XML seems to be a quite clean and nice solution. But... have you realized that you don't have available basic sample like generating invoices, order details...

This solution does not support out of the box auto generating content controls for tables or things like that. If you need to implement this you will have to implemented code to dynamically add content controls and map to the XML... pain in the neck

Click Here To Navigate to the Article

Binding Data to Word 2007 Content Controls Using Visual Studio Tools for the Office System (3.0)
Entry Date: May 2008 site: MSDN Rating:
keywords:.net framework 2.0; ADO .net; XML; Open XML; Office; DataSet; Ms Word; VSTO;
Article Description:
This visual how-to article demonstrates how to use content controls in a Visual Studio Tools for the Office system project to build a product brochure using Office Word 2007. The data for the brochure comes from a back-end database and content controls surface product data from the database to appropriate locations in the brochure
Comments:

When you look for Office 2007 and content controls samples / documentation is all more related to handling XML and associate it with Ms Word using VBA

This sample goes one step forward: how to associate controls to data retrieved from a dataset (built up using select query from a Database) using VSTO 3.0 (Visual Studio Tools for Office and real .net coding !)

Click Here To Navigate to the Article

Creating Word 2007 Templates Programmatically
Entry Date: May 2008 site: MSDN Rating:
keywords:XML; Open XML; Office; XSD; Ms Word;
Article Description:
Read details about how to create document templates programmatically for Microsoft Office Word 2007, including information about using the new content controls, document building blocks, and XML mapping. Review some of the newest members of the Word 2007 object model. (26 printed pages)
Comments:

Deep dive into Ms Word 2007 and separation of Data / View using XML

The code generated using VBA you can map it to VSTO, another approach is just open the Open XML zip file and directly replace the XML file data (there is an SDK available for that)

Quite interesting.

Click Here To Navigate to the Article

Mapping Word 2007 Content Controls to Custom XML Using the XMLMapping Object
Entry Date: May 2008 site: MSDN Rating:
keywords:XML; Open XML; Office; XSD; DataSet; Ms Word;
Article Description:
Microsoft Office Word 2007 enables you to create document templates and use content controls and XML mapping to bind to custom XML data.
Comments:

Automatically fill up templates with data is quite easy with Word 2007, you don't have to worry anymore about learning Word data models, XML formatting...

You only have to define where your data is going to be inserted in the document and then you will only have to deal with a pure data XML chunk ! (a separated XML file inside a zip file, or you can just use VSTO or macros to fill it up)

You only will need 5 minutes to watch this video, once you know the power of this technology you can step into more advanced webcasts

Click Here To Navigate to the Article

Data/View Separation in Word 2007
Entry Date: May 2008 site: Channel 9 Rating:
keywords:XML; Open XML; Office; XSD; Ms Word;
Article Description:
In this screencast, Office program manager Brian Jones shows how to use content controls, data binding, and the custom XML data store to push/pull data to/from a Word 2007 document.
Comments:

In Office 2003 we had the concept of XML Data Island... well in 2007 Microsoft has extended the XML support in or to separate view from data

Now Office 2007 format is OpenXML, that's a zip file with XML info and binary info (images, ...), good thing of this is that you can have an XML with data totatilly separated and just replace the info without bothering about breaking the layout of the document.

Click Here To Navigate to the Article

Populating Word Documents on the Server with Microsoft .NET
Entry Date: May 2008 site: dotnet sys Rating:
keywords:ASP .net; XML; Web Services; Office; XSD; DataSet; Ms Word;
Article Description:
Using VSTO to create and manipulate data islands in Office documents.
Comments:

Quite interesting article: until now when we talked about generating word documents we thought about using RTF / XML for web app's and OLE Automation for desktop applications

Now you can combine Visual Studio Tools For Office (VSTO) plus XML Data Islands in Word. By using this approach you define a template and place them XML tags (Defined in an XSD) and then feed it up with XML, e.g. a SELECT from a table or consuming data from a webservice

Nice approach for web and desktop applications

Click Here To Navigate to the Article

<< Previous Articles Page (2) Of 2