Hi,
Thanks for sample code ...
but The version of POI I am using that doesn't have getCommentsRange Method
...
I want to know which POI Version you are using ...
I am using POI 3.2 Final version.
Regrads,
Bihag
MSB wrote:
>
> Was able to play with some code this morning and am posting to let you
> know that I was wrong; there is a way to recover the comments;
>
> File file = null;
> FileInputStream fis = null;
> HWPFDocument document = null;
> Range commentRange = null;
> Paragraph paragraph = null;
> try {
> file = new File(filename);
> fis = new FileInputStream(file);
> document = new HWPFDocument(fis);
> commentRange = document.getCommentsRange();
> int numComments = commentRange.numParagraphs();
> for(int i = 0; i < numComments; i++) {
> System.out.println(commentRange.getParagraph(i).text());
> }
> }
>
> Yours
>
> Mark B
>
>
> bihag wrote:
>>
>> Hi,
>>
>> I want to read all the comment (Annotation) which are there is word
>> document.
>>
>> Please provide some example code to read the comments ...
>>
>>
>> Appreciate you help ...
>>
>
>
--
View this message in context:
http://www.nabble.com/how-to-read-comments-%28-Annotation-%29-with-poi-in-word-document-%28-97-2000-xp-2003-%29-tp24510523p24535247.html
Sent from the POI - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]