Results 1 to 10 of 10
  1. #1
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    New Way to Trim Template Bloat (Word 97SR2)

    Open your 97 template in Word 2002. Make a change to the code and click the save button in the IDE. That's it.

    I shaved over 1MB off the size of a template and the best part is I used that template all day in Word 97 and THE TEMPLATE DID NOT BLOAT.

    Very weird...
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  2. #2
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: New Way to Trim Template Bloat (Word 97SR2)

    > click the save button in the IDE

    You mean to suggest that the behaviour of the FileSave toolbar icon on the Standard Toolbar in IDE is different behaviour from that of the File, Save command from the menu?

  3. #3
    5 Star Lounger
    Join Date
    May 2001
    Location
    Stuttgart, Baden-W, Germany
    Posts
    931
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: New Way to Trim Template Bloat (Word 97SR2)

    If the template bloat is caused by unused list templates, a "Save" from Word 2000 SR-1/SR-1a will fix that, too, <A target="_blank" HREF=http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q241581>if you edit the registry a bit</A>.

    <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>Klaus

  4. #4
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 29 Times in 27 Posts

    Re: New Way to Trim Template Bloat (Word 97SR2)

    Klaus,

    Two different issues I think - one is "code bloat" and the other is list template bloat. It sounds like what Kevin is describing is something built into 2002 that cleans up code bloat automatically, but I don't know anything about that - this would be great if the case though.

    What I do know a lot about is list template bloat - or thought I did, 'cause I didn't know about this KB article nor registry fix. All I can say is WOW!
    Just tested this on four files, here are before and after list template counts:

    1452 to 70
    1419 to 48
    487 to 44
    413 to 413 (perhaps it doesn't work below a certain threshold?)

    This is great to know about - at work we get a lot of documents (particularly from outside sources) that have dangerous numbers of list templates and common wisdom is there is no (easy) way to get rid of them - short of opening them in Word 2002. I'm chagrined not to have known this info sooner (the KB article is over two years old!).

    Your information should be posted on the Word forum, and it should be made a star post, as I think it would be helpful to many people.
    BTW I had trouble getting to the article from the link in your post so here it is again:
    <A target="_blank" HREF=http://support.microsoft.com/default.aspx?scid=kb;en-us;Q241581>KB Article Q241581</A>.
    <img src=/S/bow.gif border=0 alt=bow width=15 height=15> <img src=/S/bravo.gif border=0 alt=bravo width=16 height=30>
    Gary

  5. #5
    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: New Way to Trim Template Bloat (Word 97SR2)

    Just a note on the "new" KB: sometimes you get an intermediate page that looks like a navigation panel on the left and blank on the right. Clicking the Refresh button reliably retrieves the desired article. Probably a little .NET problem that MS has yet to work out.

    My question about this article is: any reason not to roll out this registry change to all users in advance? Seems that the cost in time would be pretty modest (add a .VBS to the login script) compared with the panic and stress of helping a user with a corrupted document (and trying to find this article again!). Assuming this calculation is correct, you would think MS would just build it in to the SR in the first place!

    I guess if MS really had its act together, this Lounge wouldn't exist, and we'd all have never met. And that would be a pity.

  6. #6
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: New Way to Trim Template Bloat (Word 97SR2)

    No, I don't mean to imply that. Why switch to the Word workspace to save the template when you have a button in the IDE. That's all I meant.
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  7. #7
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: New Way to Trim Template Bloat (Word 97SR2)

    HI. Yup. There is a File, Save menu in the IDE too.

    I didn't mean to switch back to Word. I meant the toolbar in IDE vs. the menu in IDE.

    Your original post seemed to suggest that bloat can be removed/eliminated by using a toolbar button instead of the IDE File Save command.

  8. #8
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: New Way to Trim Template Bloat (Word 97SR2)

    Gary, Klaus,

    In my case it is definitely code bloat as there are exactly 0 list templates in my global add-in app.

    The really amazing thing is the save of the Word 97 code in Word 2002 fixed something in the template -- it still bloats a little during day to day use, but not nearly as badly as before. For example, a 10,000 line (3,000KB) template would only shrink to about 2500kb using the Payne code cleaner. Now the template has 11,500 lines and day to day is about 2300KB. Using the Code Cleaner on it reduces it to 1684KB. And I don't remove comments.
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  9. #9
    5 Star Lounger
    Join Date
    May 2001
    Location
    Stuttgart, Baden-W, Germany
    Posts
    931
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: New Way to Trim Template Bloat (Word 97SR2)

    Hi Kevin,

    Sorry I was off-target, but that code bloat thing wasn't familiar to me.
    Is it something that only happens in Word97?
    Or do you only run into it in certain circumstances (use of external libraries...)?

    <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>Greetings, Klaus

  10. #10
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: New Way to Trim Template Bloat (Word 97SR2)

    Not sure if it ONLY happens with 97, but the Payne Consulting Code Cleaner came out for Excel and Word 97.

    You may be right in that it could be related to the use of external libraries. However, the nature of the beast is that the template grows in size regardless of your changes.

    After the saving in Word 2002, the bloat is constrained a great deal, but the Code Cleaner still serves a useful purpose.
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

Posting Permissions

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