Group:  Microsoft Word ยป microsoft.public.word.oleinterop
Thread: Word: detect paragraph format consistent?

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Word: detect paragraph format consistent?
tartancli 20.07.2006 14:32:01
Hi,

Is there a way to determine if a Word paragraph has consistent formatting
(i.e. all characters formatted the same) ?

There didn't seem to be any easy way to know this and so I was thinking of a
solution where I intially process the document and build a sorted (by
position) list of all the styles in use and their position. Then process
paragraph by paragraph, checking for each paragraph, whether any of the
styles in the list are "contained" in the paragraph. However, I expect that
this wouldn't work where the document creator used direct (or manual)
formatting ? or would it be feasible to convert direct character formatting
to character style formatting before building the sytle list? Thanks in
advance

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net