M
Mick Astley
Hi
I've faced to strange problem with my MS word Addin.
Its function is to analyze source Word document and add indentation and
numbering to paragraphs respecting to some heuristic rules. Recently I've
decided to add to it a preprocessing stage, that cleans double spaces, empty
paragraphs, ect using selection.Find.Execute() function. Everything works
fine. However when I decided to remove some paragraph formatting attributes
(namely KeepWithNext) using this function I discovered that it works just if
the program performs only preprocess stage. And if program then performs
analisis and numbers paragraps - formatting changes are getting lost!
I've tried to use another methods for clearing this paragraphs attribute,
for example:
selection.WholeStory();
selection.ParagraphFormat.KeepWithNext = 0;
Result is same - works only if main stage of program is not running.
I've also tried to clear this attribute out on analisis of paragraphs - does
not help as well.
Can someone give me an advise on this problem?
Thanks in advance,
Mick.
I've faced to strange problem with my MS word Addin.
Its function is to analyze source Word document and add indentation and
numbering to paragraphs respecting to some heuristic rules. Recently I've
decided to add to it a preprocessing stage, that cleans double spaces, empty
paragraphs, ect using selection.Find.Execute() function. Everything works
fine. However when I decided to remove some paragraph formatting attributes
(namely KeepWithNext) using this function I discovered that it works just if
the program performs only preprocess stage. And if program then performs
analisis and numbers paragraps - formatting changes are getting lost!
I've tried to use another methods for clearing this paragraphs attribute,
for example:
selection.WholeStory();
selection.ParagraphFormat.KeepWithNext = 0;
Result is same - works only if main stage of program is not running.
I've also tried to clear this attribute out on analisis of paragraphs - does
not help as well.
Can someone give me an advise on this problem?
Thanks in advance,
Mick.