i want to read the checkbox value of word document by java code
The code snippet what i am using is bellow:
InputStream fis = new FileInputStream(files[i]);
POIFSFileSystem fs = new POIFSFileSystem(fis);
HWPFDocument doc = new HWPFDocument(fs);
WordExtractor we = new WordExtractor(doc);
String[] paragraphs = we.getParagraphText();
for(int i = 0; i < paragraphs.length; i++) {
System.out.println(paragraphs[i]);
...
am using the above snippet to extract text from a Word document with two
checkboxes
I want to read that box value as true/false, 0/1, etc.
The code that I'm using for that is:
I'm also getting the checkbox value as Forms.CheckBox.1, but I'm not getting
whether it is checked or not. Can anyone please help me out?
--
View this message in context:
http://apache-poi.1045710.n5.nabble.com/i-want-to-read-the-checkbox-of-word-document-by-java-code-tp5714782.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]