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();
....
}
Acmeman 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
>
>
> --
> Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP
> autenticato? GRATIS solo con Email.it http://www.email.it/f
>
> Sponsor:
> Gioca con Poker Club! Scegli il torneo che fa per te, ogni settimana puoi
> vincere oltre 240.000!
> Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=8805&d=6-4
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
--
View this message in context:
http://www.nabble.com/Table-in-HWPF-tp22910549p22986863.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]