Welcome to Office & SharePoint Pro Sign in | Join | Help
in Search

SUBSCRIBE to Windows IT Pro Magazine & SAVE 30%      FREE Email Newsletters Vista UPDATE, Windows IT Pro UPDATE & More

Document templates

Last post 10-17-2007, 4:28 PM by danholme. 1 replies.
Sort Posts: Previous Next
  •  10-17-2007, 3:02 PM 28682

    Document templates

    Is there an easy way to attach hundreds of documents to a different template (from the one they were created with) without resorting to opening each document and attaching the new template?

    Will templates in Word 2003 be usable/compatible with Word/Office 2007?  Or do we have to rewrite those document templates?

     Thank you very much for any information you can share.

    Filed under:
  •  10-17-2007, 4:28 PM 28684 in reply to 28682

    Re: Document templates

    Unfortunately not in the user interface.

    The originating template is a property of the doucment (obviously--that's how it remembers where it came from) and that can be accessed programatically.

    You'll need to code such that you "grab" onto the documents, iterate through each one, and use this line

    ActiveDocument.AttachedTemplate = "C:\Templates\Letter.dot"

    to attache the appropriate template.  Then save the doc.


    Dan Holme
    Office & SharePoint Pro Community Leader
    MVP (Windows Server - Directory Services)
View as RSS news feed in XML
SPONSORED LINKS FEATURED LINKS

Order Your Fundamentals CD Today!Get up to speed quickly and learn how to uncover rich information management and deployment capabilities with this free SharePoint CD. Empower Your Processes with PowerShell 201Paul Robichaux delves deep into PowerShell how-tos in 3 informative lessons, each followed by live Q&A—all on your own computer! Register today! WinConnections, March 15-18, 2009 – Orlando, FLThe first 500 paid attendees receive SQL Server 2008 Standard Edition w/one CAL. Register by January 12 and receive a free night at the Hyatt Grand Cypress (with 3-night stay). Details (203) 268-3204 or 800-438-6720. New Release: Windows IT Pro Master CD13 years of content archives, fast answers with advanced search tools, and full access to WindowsITPro.com—order today!