Hello,
We have encountered two problems with word documents containing tables.
First, If an html document that contains an especially wide table is converted to a word document, the table extend beyond the border of the document. Is there a way around this issue?
Second, we encountered a document containing a table that is converted incorrectly into html, I have attached this document.
Thanks in advance.
Hi
Thanks for your request.
1. You can use code suggested here to fit your table to page width:
2. Could you please also attach your output HTML document here? I converted your document to HTML and the table seems to look fine. I would like to compare with your output.
Best regards,
Hi,
I’m sorry for the delay of my reply.
I have attached the HTML output,
you can see that the table’s location is pretty messed up.
Thanks in advanced.
Hi
Thank you for additional information. The problem occurs because table in your source document is floating. Aspose.Words tries to set position of floating table as it is specified in MS Word.
You can easily workaround the problem by avoiding using floating tables in your document.
Best regards,
Hello Alexey,
Hi
Thanks for your request. You correctly understood. Table is floating if its wrap type is around. After changing it to none it becomes inline.
I managed to reproduce the problem with left border. Your request has been linked to the appropriate issue. We will let you know once it is resolved.
Regarding the floating tables, I logged this problem to our defect database. We will keep you informed and let you know once it is fixed. But I would recommend you to avoid using floating tables.
Best regards,
Hello Alexey,
Hi Ofir,
The issues you have found earlier (filed as WORDSNET-5225;WORDSNET-5226) have been fixed in this .NET update and this Java update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(4)