You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2014/04/03 11:12:18 UTC
[Bug 56344] New: WordToHtmlConverter cannot create table in table
(fix inside description)
https://issues.apache.org/bugzilla/show_bug.cgi?id=56344
Bug ID: 56344
Summary: WordToHtmlConverter cannot create table in table (fix
inside description)
Product: POI
Version: unspecified
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: HWPF
Assignee: dev@poi.apache.org
Reporter: korvin.lucky@gmail.com
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
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 56344] WordToHtmlConverter cannot create table in table (fix
inside description)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56344
Jk <ko...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 56344] WordToHtmlConverter cannot create table in table (fix
inside description)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56344
--- Comment #1 from Jk <ko...@gmail.com> ---
(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.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org