External Data in Microsoft Word 2010


In this article we will be seeing how to show external data in Microsoft Word 2010.

Introduction:

Content controls in Microsoft Word provide a User Interface that is used for user input and printing. For more information on Content Controls in Microsoft Word 2010 please refer http://msdn.microsoft.com/en-us/library/bb157891.aspx.  These Content Controls can be used in Microsoft Word 2010 to expose the external data in the document. Here we will be seeing how to expose the external data in the word document.

I have a document library called Shared Documents in my SharePoint site. I have added an External Data column named Employee Name which includes some additional fields Designation, Location, EmpId and Department. I am going to add these external data column into the word document so that the values will be automatically populated based on the external data columns in the word document.

Steps Involved:

  1. Open the SharePoint Site (http://servername10:10736/sites/ect).
  2. Click on Shared Documents in the Quick Launch bar.
  3. Shared Documents has the following columns

    ExtDataWord1.gif
     
  4. In the ribbon interface go to Library Tools, click on Documents tab.
  5. Click on New Document button in the New group.

    ExtDataWord2.gif
     
  6. A new word document will be opened.
  7. I have created a sample table which contains the information as shown in figure

    ExtDataWord3.gif
     
  8. Go to Insert tab, Click on Quick Parts.
  9. Click on Document Property, you could be able to see all the columns as shown in figure.

    ExtDataWord4.gif
     
  10. Drag and drop the columns into the table as shown in figure

    ExtDataWord5.gif
     
  11. Save the document.
  12. A new document will be added to the document library.
  13. Select the document, click on Edit Properties in the ECB menu.

    ExtDataWord6.gif
     
  14. Add the value to the external data column "Employee Name".

    ExtDataWord7.gif
     
  15. Click on Save.

    ExtDataWord8.gif
     
  16. Select the document, click on Edit in Microsoft Word in the ECB menu.
  17. Values for the external data columns will be automatically updated in the word document as shown in the below figure.

    ExtDataWord9.gif

Conclusion:

Thus in this article we have seen how to show external data in Microsoft Word 2010.