How to auto populate Word template using Open XML SDK 2.0

Published on

Here is some simple code that updates a word document template that contains 2 content controls in the template document called: MatterNumber DocType The template document is – C:UsersstilgoepWordTesttest-contentcontrol.docx The output document is – C:UsersstilgoepWordTesttest-contentcontrol-updated.docx You need to add the following 2 references: DocumentFormat.OpenXml WindowsBase.dll You will also need to download the Word Content Control … Continue reading How to auto populate Word template using Open XML SDK 2.0

Populating an Infopath dropdown using a specific Sharepoint list view

Published on

If you have a Sharepoint list containing multiple views, one view shows all approved items and another view shows all items that are pending approval. You have an Infopath form where you have a dropdown control that you want to be populated with only ‘Approved’ list items from your Sharepoint list. If you create your … Continue reading Populating an Infopath dropdown using a specific Sharepoint list view

Converting a Sharepoint List into XML

Published on

This easiest way is to use the URL below & insert your list GUID http://servername/site/_vti_bin/owssvr.dll?Cmd=Display&List=*YOURUNIQUELISTID*&XMLDATA=TRUE To get the GUID of the list you need to go into the list & click ‘Settings’ -> ‘List Settings’. Now if you look at your URL you will see something like: /_layouts/listedit.aspx?List=%7B7B476F98%2D1075%2D4A6D%2D8F63%2D4C754B3F41FC%7D The URL is encoded so you will … Continue reading Converting a Sharepoint List into XML