Opening office documents as templates from WSS

So you have a WSS document library containing some word and excel files and you want then to open as templates instead of the actual documents.

In the document library toolbar you have the “New” button, witch does exactly what you need. The “New” link is not a link to the documenttemplate but instead a link to a javascript function as so:

createNewDocumentWithProgID([Document-to-be-opened-as-a-template URL], [Save-to URL], ‘SharePoint.OpenDocuments’, false)


javascript:createNewDocumentWithProgID(‘http:\u002f\u002fmosssrv\u002fTemplates\u002fdocument.docx’, ‘http://mosssrv/Documents’, ‘SharePoint.OpenDocuments’, false)

Remember to use ‘\u002f’    instead   of   ‘/’


, ,

  1. #1 by Pia Serspinski on March 16, 2010 - 2:47 pm

    Opening the office document worked well thank you…but how do I set the Document Title property when I open the document.

    • #2 by Søren on March 18, 2010 - 10:07 am

      In Office 2007: The properties of the document-to-be-opened-as-a-template will be copied to the new document. So if the template document have a Title property the new document will have the same Title property.
      In Office 2003 or earlier: i havn’t tested this.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: