Recreating Styles

J

Julian

Does anyone know how to re-create styles without propagating a corruption?
Is there any existing code that does this e.g. by re-parsing
style.description and defining a new style with the specifics it lists?

Or any other way? I have a corrupt style; it could happen again. I'd like to
be able to "clean" my styles periodically.

All help appreciated. Thanks
 
J

Julian

Thanks Stefan...

That's a useful guide on recreating docs and where corruptions live - I have
some very big tables and a few (small) nestings and have had and fixed
ordinary table corruptions before, and I do use the Document Map (but none
of the other gotchas) (NB there are other Word corruptions not listed that
I've found, such as stray "null" characters - though whether they impact
anything I don't know; I also think that paragraph marks can "contain"
corruptions - certainly recreating them has fixed problems in the past)

I've previously relied on SaveAs RTF but this document seems to be too big
for Word to handle :) (though I can't remember whether it fails to save or
reopen, I certainly can't round-trip via RTF) It's one big document because
I learned about Master documents a long, long time ago.... I am currently at
the nominal limit of Big Files (32MB), but it's generally OK (x fingers)

Saved as MHT (67MB file), Word seems to be struggling to reopen it... and is
now "no longer responding" (even though Vista is a little overzealous in
such reports, in this case I believe it)

I think I know enough about my own styling to be able to write a little
description parser... manual rebuilding leaves too much to chance (though I
did do it for the specific coruption I found.). Unfortunately looking at a
defective style in the Watch window shows nothing obviously amiss, so I
haven't been able to develop a test for this corruption...

Thanks again for your input

Julian

Stefan Blom said:
This sounds like a manual task... If there is corruption in the document,
you would probably want to recreate it using the techniques at
http://word.mvps.org/FAQs/AppErrors/CorruptDoc.htm.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top