We use insertHTML() to insert tables in Aspose documents, on which we apply table styles. As you can see, in the saved PDF file, the two tables have different width. However, in the Word file, the two tables are the same width.
In the following example, model.dot is a newly created model, from which we use the built-in “Table Grid” style to be applied to two HTML tables (we are using version 17.3.0) :
com.aspose.words.Document doc = new com.aspose.words.Document(“model.dotx”);
DocumentBuilder builder = new DocumentBuilder(doc); String html = “” + “<table width=“100%”>” + “
Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-15017. You will be notified via this forum thread once this issue is resolved.
Thanks for your inquiry. The issue actually depends on the resolution of an internal extremely complex issue (WORDSNET-832). Therefore, WORDSNET-15017 has been postponed. We will review your issue after the resolution of WORDSNET-832. Unfortunately, there is no ETA available at the moment. We apologize for your inconvenience.
As a workaround, please call doc.CompatibilityOptions.OptimizeFor(MsWordVersion.Word2003) method before saving document. Hope this helps you.