Hi Mark, I would sincerely like to convey my Thanks to you.
The tips you have given is really helpfull. appreciated your time and efforts. Regards, Bihag MSB wrote: > > Sorry, I should have made that clear. > > I am using the current beta version - 3.5 beta 7 - that you can download > from the 'nightly builds' area at > http://encore.torchbox.com/poi-svn-build/. When you visit this page, you > will see lots of archives to download, all you should need to get going > are the scratchpad and poi archives, they will most likely have names > similar to these; poi-3.5-beta7-20090717.jar and > poi-scratchpad-3.5-beta7-20090717.jar. The other archives - > poi-ooxml-3.5-beta7-20090717.jar and > poi-dependencies-3.5-beta7-20090717.zip - will be needed if you are hoping > to work on the OpenXML based file formats. Do not worry too much about the > beta tag. Many users run these classes in production code and it seems to > be very stable indeed. > > Yours > > Mark B > > > bihag wrote: >> >> 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-tp24510523p24539697.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]
