Results 1 to 15 of 15
  1. #1
    3 Mad Ponchos
    Guest

    File May Be Corrupt!

    Oh how I shudder when I see that dread message appear when I open a file in Word 97.

    In the past, I've run the file through a text-only program such as Notepad. The output is clean but unformatted.

    This time, the allegedly-corrupt file is too large for that. So I started to tinker. I found that, as usual, the engineers had managed to contaminate the template. So I went through my usual decon routine, and in the process may have stumbled into the problem!

    When I replace the styles Heading 1 through Heading 9 with my known-good versions, I get a message "There is not enough memory or disk space to update the display." Then the styles appear, but with the level numbering wrong on the first three headings and no numbering at all on the remainder. If I try to correct the heading styles again, I get the *same* message, only this time I lose the numbering altogether, and all further attempts to alter the numbering are totally ignored!

    Is that weird or what?

    Anybody got a bright idea for this one?

    Cheers, 3MP

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

    Re: File May Be Corrupt!

    Hi 3MP:

    Just for jollies, try the following:

    With the document open, Alt+F11 to go to the VB Editor.
    Then Ctl+G to open the Immediate Window.

    In the Immediate Window, type the following:
    ?ActiveDocument.ListTemplates.Count
    and then hit Enter.

    Do you get some kind of ridiculously large number?

    Gary

    PS: is that supposed to be "Ponchos" or "Panchos"?

  3. #3
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: File May Be Corrupt!

    And following on from Gary's test the simple way to fix that is to save the file into Word 95 format. Open and save it using that Word 95 and then you can reopen it in Word97 without the dreaded error. Reopening in W97 without using Word95 to have a look does NOT fix the problem.
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  4. #4
    3 Mad Ponchos
    Guest

    Re: File May Be Corrupt!

    Hi Gary!
    I did as you said, and got 2,023. Seems a little high, eh? [img]/forums/images/smilies/wink.gif[/img]

    I'll see if I can find a computer that still has Word 95 on it. You know engineers... they always gotta have the latest toys. They may have wiped out all the '95 machines by now. Is there another way to fix this?

    Re: Panchos/Ponchos: It's supposed to be Ponchos. Long story. [img]/forums/images/smilies/smile.gif[/img]

  5. #5
    New Lounger
    Join Date
    Mar 2001
    Location
    Ann Arbor, Michigan, USA
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: File May Be Corrupt!

    You might want to try the sequence I described in [Post#: 43766 / re: 43676 ], the recent thread on "Trouble Between Formatting & Shared Documents". It's pretty quick and has a good chance of fixing your problem without losing all the formatting.

    --Flip

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

    Re: File May Be Corrupt!

    Hi again,

    That 2,023 is definitely the problem.
    Before trying Flip's save to RTF solution, try copying the contents of the entire document minus the last paragraph mark, and pasting this into a new document.

    Then do the ListTemplates.Count test on this new document. Let us know what result you get, as this would be worthwhile to know. My bet is that most of those extra list templates are unused and will get left behind in the original document. If you do still get a high number (for example 200), then the save to RTF is worth a try.

    Gary

    PS: you've got an engineer or engineers there who are flailing around with the autonumbering feature (and they're probably exasperated as heck). Maybe some basics on creating outline numbering would help. If you're interested, I can forward you a copy of a guide on how to do outline numbering.

  7. #7
    3 Mad Ponchos
    Guest

    Re: File May Be Corrupt!

    Did as you said. Same result. [img]/forums/images/smilies/sad.gif[/img]

    These engineers are using templates with the numbering preprogrammed (by me). They shouldn't have to touch it. They also have detailed instructions on how to avoid corrupting templates, but you know how much engineers love being told how to use computers. [img]/forums/images/smilies/wink.gif[/img]

    I also couldn't find a machine with Word 95 on it. Any other ideas? This doc is 140 pages long.

    Cheers, 3MP

  8. #8
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: File May Be Corrupt!

    OK then, the other method is a lot slower but stays in the same version of Word. It has been covered here <A target="_blank" HREF=http://www.wopr.com/cgi-bin/w3t/showthreaded.pl?Cat=&Board=wrd&Number=6328&Search= true&Forum=wrd&Words=chunk list &Match=And&Searchpage=0&Limit=25&Old=allposts&Main =5766>previously
    </A>
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  9. #9
    3 Mad Ponchos
    Guest

    Re: File May Be Corrupt!

    Oy, that *IS* the slow way isn't it! With that much work, this might have to just be a 'lesson learned' for why I established the procedures to avoid this problem in the first place. [img]/forums/images/smilies/smile.gif[/img]

    Thanks for the help! At least now I know what caused it!

    Cheers, 3MP

  10. #10
    BAM
    Guest

    Re: File May Be Corrupt!

    You may be able to recover this a little easier.

    First obtain the latest Word 97 patch:
    <A target="_blank" HREF=http://office.microsoft.com/downloads/9798/Wd97mcrs.aspx>http://office.microsoft.com/download.../Wd97mcrs.aspx</A>

    and then in the Registry route to:
    HKEY_CURRENT_USERSoftwareMicrosoftOffice8.0WordOpt ions

    Add a new String Value:
    Value Name: LTOverflowRecovery
    Value: 1

    After the above is complete you need to use a Save As and create a new file. Otherwise when the original file is viewed on another workstation the error could occur if they don't have the latest patch and the Registry modification.

    Additional details can be obtained from:
    <A target="_blank" HREF=http://support.microsoft.com/support/kb/articles/Q237/2/74.ASP?>http://support.microsoft.com/support/kb/ar...s/Q237/2/74.ASP?</A>

    You could also try copying the text excluding the section breaks and final paragraph mark into a new document.

    That should rectify the template overflow problem since that is how it was done before MS came up with a fix. <g>
    ~~~~~~~~~~~~
    Cheers!

  11. #11
    Lounger
    Join Date
    May 2001
    Location
    Arlington Heights IL
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: File May Be Corrupt!

    Gary
    Care to post a reference to that numbering guide?

    Thanks

    Jul

  12. #12
    Platinum Lounger
    Join Date
    Dec 2000
    Location
    Queanbeyan, New South Wales, Australia
    Posts
    3,730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: File May Be Corrupt!

    Jul,

    Send a private mail to Gary. It's not a public document.

    It's a very good document- I used it quite successfully to set up numbering styles in VBA.
    Subway Belconnen- home of the Signboard to make you smile. Get (almost) daily updates- follow SubwayBelconnen on Twitter.

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

    Re: File May Be Corrupt!

    Geoff,

    Did I see you say "set up numbering styles in VBA"? - that's actually something not (yet) covered in that guide.
    Now, before Andrew Lockton jumps in, I should mention that since writing that guide I have started to follow Andrew's lead and am using VBA for some outline numbering functions.

    Here are two examples - in both cases, the outline numbering was first set up manually in a template, but VBA provides additional functions:

    1 - "Fix broken outline numbering" button: until recently, when someone in the firm sent me a document with broken outline numbering, I had to fix it manually. Here's a much better approach: create a "fix numbering" macro:

    With the selection in a paragraph that has your outline numbering Level 1 style applied, commence recording a macro. The only actions the macro records are: go to Format > Bullets & Numbering > Customize, OK, OK. Stop recording.

    What you've now got in code is a template for your outline numbering scheme - the way it's supposed to be.
    To fix broken outline numbering, I ensure the selection is in a "Level 1" style paragraph, then run the macro - boom! - numbering is fixed. (It may not even be necessary to be in a Level 1 or even in a list, to run the macro, but I haven't tested that yet.)

    2. Multilanguage support for outline numbering lists:
    Imagine a typical legal outline numbering list that goes:
    Article I
    Section 1.1
    (a)
    (i) etc.

    Now imagine that you need to make this outline numbering list available in 20 languages, from the same template - the words for "Article" and "Section" need to change depending on the language. You want the language for these words to automatically be assigned whenever a new document is opened, based on the user's indicated language preference. And you want to give the user the option to change the language later as well.

    The solution here again is to first record a macro, which provides a code template of the outline list template. Then in the code, replace the literal references to "Article" and "Section" with variables (strArt and strSect in this example).
    Now, when a new document is created, the code checks to see the user's language setting, and based on that, it pulls the appropriate translations from data storage, assigns these to the variables strArt and StrSect and updates the list template with these values. The best part is seeing the language for these change, in a 100 page document, in the blink of eye.

    Pretty cool stuff! <img src=/S/cool.gif border=0 alt=cool width=15 height=15> - thank you Andrew L. <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

    Gary

  14. #14
    Platinum Lounger
    Join Date
    Dec 2000
    Location
    Queanbeyan, New South Wales, Australia
    Posts
    3,730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: File May Be Corrupt!

    Gary,

    OK then. I used the guide to learn how to create the styles properly (I'd never had need of anything more than a simple numbering before). Once I'd done that it was a cinch to get VBA to do the same for me.

    Congrats on starting the path into VBA.
    Subway Belconnen- home of the Signboard to make you smile. Get (almost) daily updates- follow SubwayBelconnen on Twitter.

  15. #15
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    A hah - got him

    Gary

    I knew if I nagged you long enough I would eventually get to you.
    I learnt that from my long-suffering wife.
    Andrew Lockton, Chrysalis Design, Melbourne Australia

Posting Permissions

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