I have a MS Word document created in Word 2007, but saved as Word
97-2003 format (.doc).  This document contains 2 lines as follows:

Test Test2
Test3

The style of the first line is set to Quote, while the style of the
second line is set to Strong.

Using poi-3.8-20120326.jar and poi-scratchpad-3.8-20120326.jar, I am
looping through each paragraph, retrieving the Style Index
(p.getStyleIndex), and getting the Style Name (style.getName).  This
works great for the first paragraph and returns the name Quote.  For the
second paragraph (Test3), it returns the Style Name Normal.  Even the
Style Index is returned as 0.  To make things more interesting, if I
change the style of the first paragraph to Strong and leave the second
paragraph as Strong, the code returns the Style Name Quote for the first
paragraph and Normal for the second paragraph.

Any help would be appreciated.  I would be happy to provide my code and
test document, if needed.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@poi.apache.org
For additional commands, e-mail: user-h...@poi.apache.org

Reply via email to