Summary: | WordToHtmlConverter cannot create table in table (fix inside description) | ||
---|---|---|---|
Product: | POI | Reporter: | Jk <korvin.lucky> |
Component: | HWPF | Assignee: | POI Developers List <dev> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All |
Description
Jk
2014-04-03 09:12:18 UTC
(In reply to Jk from comment #0) > If you use WordToHtmlConverter to word with table in table you cannot see > same thing inside html. > > reason: > in protected void processTable(HWPFDocumentCore hwpfDocument, Element flow, > Table table ){ > ////skip some analyse > final Element tableElement = htmlDocumentFacade.createTable(); > tableElement.setAttribute(bla-bla); > > if ( tableHeader.hasChildNodes() ) > { > tableElement.appendChild( tableHeader ); > } > if ( tableBody.hasChildNodes() ) > { > tableElement.appendChild( tableBody ); > flow.appendChild( tableElement ); > } > else > { > logger.log(bla-bla); > } > } > > > and at last you need to do: > > flow.appendChild(tableElement); > > otherwise you table will be without correct father Sorry, was wrong: as I understand later there is one symbol like space " " in word document, that represents as range witch papx.toByteArray() is really [0,0,0,0,0] that's why your analizes think that range out of table and that's why stop table at that symbol. |