Results 1 to 12 of 12
  1. #1
    Lounger
    Join Date
    Nov 2004
    Posts
    46
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Template Updating (Word 2000)

    I have a program that has associated with it some 200 word templates. (It is as an aside the worst program I have ever come across but for other reasons) On a regular basis these need a global update to the header, footer, styles. To change them individually requires hours of work. Is it possible to create a 'reference template' that could be uploaded? Or can the header and footer be created as files to which the 200 templates can upload each time a document is to be created e.g. a png or similar graphic file and use normal.dot as the base for all styles? If it helps I can attach a typical word .dot

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Template Updating (Word 2000)

    You could put a linked graphic in the header and/or footer, and use code in the Document_New event procedure in the ThisDocument module to update, then unlink the graphics.

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Template Updating (Word 2000)

    Along the lines suggested by Hans, you could create two AutoText entries in a global template (okay, yet another template...) and reference them in the header and footer, respectively, using an AUTOTEXT field. A Document_New procedure could update these fields (to match the master global template) and then unlink them so that for any given new document based on the template, they reflect the then-current version of the header and footer.

    For styles, the same Document_New procedure could automate the Organizer to copy the styles from your master global template, but this is a bit messier.

  4. #4
    Lounger
    Join Date
    Nov 2004
    Posts
    46
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Re: Template Updating (Word 2000)

    Thanks both for the prompt response. There are a couple of issues that I have problems with though.
    I have added a link to a png which I have then used to create a 'Normal LH.dot' based on Normal.dot and that is a template for creation of others.

    When I use it to create a document:
    1. The link appears and prints as an icon only, and not the graphic, in the doc. Although in preview the dot appears OK when selecting it as template.
    2. The template seems to be adopting more than just the link. The dot size changes from 31k to 3.5M and so do the docs created from it. (Normal.dot is 28k)
    I have tried creating the link in every way I can think of but I alway seem to get a large file. NB png's are also app 50k

    I am uncertain how AUTOTEXT can be used to enter graphics

    Am I being stupid? and have you any suggestions as to how I can prevent the above?

  5. #5
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Template Updating (Word 2000)

    About the file size: I suspect that the linked picture is stored in the doc anyway.

    Click on the picture and press Shift+F9 to see the field code. You should see something like

    { INCLUDEPICTURE "H:PicturesHeader.png" }

    Insert d before the closing bracket:

    { INCLUDEPICTURE "H:PicturesHeader.png" d }

    Press F9 to hide the field code and update the field. Repeat for other linked pictures, then save to see if the file size is reduced.

  6. #6
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Template Updating (Word 2000)

    > I am uncertain how AUTOTEXT can be used to enter graphics

    AutoText can include a wide variety of "stuff." If you create your header (for example, one of ours includes a logo graphic and a typical fax misdelivery warning notice), select it and choose Insert>AutoText>AutoText..., you can name it and add it to the template of your choice. Then you should be able to insert it into the header of another document that has access to that template. I've got frames in one AutoText, fields in another, etc. There must be limits, but I can't recall any serious problems.

    Make sure to include the ending paragraph mark if you want to preserve that paragraph formatting for the entry (e.g., centering). Otherwise, the last line will pick up some or all of the style of the paragraph it is inserted into.

  7. #7
    Lounger
    Join Date
    Nov 2004
    Posts
    46
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Re: Template Updating (Word 2000)

    I have switched off the preview in properties. The dot size is now 47k and the doc created 24k.
    It seems the preview embeds the graphics

  8. #8
    Lounger
    Join Date
    Nov 2004
    Posts
    46
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Re: Template Updating (Word 2000)

    Sadly the last programming I did in Basic was in 1977 and in VB around 1990
    I had a look at 540,342 which does the task very well as far as unliking is concerned - HansV <img src=/S/clapping.gif border=0 alt=clapping width=19 height=23>
    However there is one problem; if I save first to a directory that is not containing the template/png the save and printout shows icons instead of the graphic. I have set a save before creation of the document 579,313. How do I force the link to refresh. NB update links etc are 'on' in the options. <img src=/S/help.gif border=0 alt=help width=23 height=15> please

  9. #9
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Template Updating (Word 2000)

    Perhaps the problem is that you are refreshing before unlinking. When you Print or Print Preview, Word generally will update fields in the headers and footers (and optionally in the body). If the path to the graphic has becomes invalid, that update process will "break" your document. You either can unlink the image immediately or you can try using a path which is valid regardless of where the document is saved. (I say "try" because sometimes Word changes paths to suit its own purposes...)

  10. #10
    Lounger
    Join Date
    Nov 2004
    Posts
    46
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Re: Template Updating (Word 2000)

    I have a problem still with templates. I have done as suggested and created an auto text entry. I have also created a specific Normal.dot that includes the autotext. There seems no consistence though in the respect of whether a header picture appears or the microsoft picture box appears.
    The templates are held on our server in a file to which everyone is directed. The 'general' templates directory is where the 'png' files are held. I have switched on the update links both at the 'Print' options in Word and also 'update links at open'.
    I have removed all the VB text that had previously been inserted.
    There is even inconsistency with the Header and Footer and 2nd Page header. A letter on one PC will show the Header for instance and yet on another template made the same way thew header appears as a box.
    I have tried but am rapidly failing to make sense of this.
    Returning to your reply 15th June - I am not sufficiently wise in Word Basic to create the VB for youre suggestion
    "A Document_New procedure could update these fields (to match the master global template) and then unlink them so that for any given new document based on the template, they reflect the then-current version of the header and footer."
    as in forcing a refresh to look for the "INCLUDEPICTURE" that is located in the template directory.
    There are three text forms I have tried to date for the 'Autotext'
    {INCLUDEPICTURE "S:TemplatesLetter templatesBPM Footer.png" * MERGEFORMAT d}
    {INCLUDEPICTURE "S:TemplatesLetter templatesBPM Footer.png" * MERGEFORMAT d}
    {INCLUDEPICTURE "..BPM Footer.png" * MERGEFORMAT d}

    Please can you help

    Regards

    Duncan McDonald

  11. #11
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Template Updating (Word 2000)

    I assume your AutoText entry contains the INCLUDEPICTURE field, rather than an actual picture. If so, and you press Alt+F9 to toggle the display of fields, can you spot any difference between the working and nonworking headers/footers/etc?

    > I have also created a specific Normal.dot that includes the autotext.

    To avoid confusion with the user's personal Normal.dot template, if this is a shared global template, it would be desirable to give it a different name (e.g., letterhead.dot).

    (Regarding Document_New, please try a search; I can't do the research at the moment.)

  12. #12
    New Lounger
    Join Date
    Apr 2007
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Template Updating (Word 2000)

    Hi
    I realise I did not complete the feedback here.
    The PC's being used are connected to a network and the templates held on a central location on the server.
    The success of using 'autotext' required each profile and PC to see the autotext directory address the same way including the entry in file location within word. Once all this detail was unified the templates located the correct png link for headers and footer and change as suggested. This has saved a huge amount of time since in the intervening period the address has changed as well as logos on the footer and colour. ie there have been 3 changes.
    Hope this helps someone else and thanks for your help
    Duncan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •