Welcome to Office and 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 capabilities with this free SharePoint CD. IT ConnectionsDive into the new Microsoft platforms and products you implement and support with the experts from Microsoft, TechNet Magazine, Windows ITPro and industry gurus. There are 70+ sessions and interactive panels with networking opportunities. Attention User Groups & User Group Leaders...Announcing the eNews Generator—a FREE HTML e-newsletter builder for user group leaders. Build your HTML and text e-newsletters in minutes. And add Windows IT Pro & SQL Server Mag articles alongside your own message!. Get Specialized SharePoint Training!SharePoint MVPs Dan Holme, Michael Noel, and Andrew Connell share their perspective and expertise in these exclusive eLearning seminars. One Event for developers and one for IT pros. Choose the one that fits your needs! Get SQL Server 2008 at SharePoint ConnectionsDon’t miss SharePoint Connections, the premier event for Microsoft IT Professionals, in Las Vegas, November 10-13. Every attendee will receive a copy of SQL Server 2008 Standard Edition with one CAL.