Far too wet to work outside today so I have been digging around in the
javadocs further. If you simply want to get at the tables in a document then
you can use the TableIterator class something like this;
inputFile = new File("C:\\temp\\table.doc");
fileIStream = new FileInputStream(inputFile);
bufIStream = new BufferedInputStream(fileIStream);
doc = new HWPFDocument(bufIStream);
range = doc.getRange();
tableIterator = new TableIterator(range);
while(tableIterator.hasNext()) {
table = tableIterator.next();
....
}
[email protected] wrote:
>
> Hi
> Anyone could post me the minimal code to get the list of all tables
> in a word document. In particular i want to have a class from i could
> extract the Object "Table" from each table in the document.
> Greetings
>
> Enrico
>
>
> Con Tutto Incluso chiami e navighi senza limiti e hai 4 mesi GRATIS.
>
> L'attivazione del servizio è gratis e non paghi più Telecom!
>
> L'offerta è valida solo se attivi entro il 07/04/09
> http://abbonati.tiscali.it/promo/tuttoincluso/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
--
View this message in context:
http://www.nabble.com/reading-Tables-tp22911444p22986751.html
Sent from the POI - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]