Hi,
I am creating an HTML table and inserting it to a Word document (.DOCX) using following APIs:
DocumnentBuilder.moveToBookmark(BookmarkName);
DocumnentBuilder.insertHtml(HtmlStr);
But the table does not appear (fit) properly on the document. I have attached the output document and the HTML file of the table.
I tried to use the following APIs also to set the auto-fit behavior of the table but had no luck:
Table table = (Table)Document.getChild(NodeType.TABLE, 0, true);
table.autoFit(AutoFitBehavior.AUTO_FIT_TO_WINDOW);
I get the same table.
Please suggest some solution for the table to appear correctly on the document.
Thanks & Regards,
Prabhaker Kr