Table Autofit not proportional column

Hi,
i use the command

((Aspose.Words.Tables.Table)tmp).AutoFit(AutoFitBehavior.AutoFitToWindow);

but the generated table does not respect the proportions of the columns.

@qwerty12z,

Thanks for your inquiry. To ensure a timely and accurate response, please ZIP and attach the following resources here for testing:

  • Your input Word document
  • Aspose.Words generated output DOCX file showing the undesired behavior
  • Your expected Word document showing the correct output. Please create this document by using MS Word.
  • Please create a standalone console application (source code without compilation errors) that helps us reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

Good morning,

attached an example console, with the implementation of the autofit,

one directly from a word table,

another copying the table from excel in word and enabling the autofit.

In the example there are files generated by office, which behave differently than the width of the columns.

Additionally copying the table in word from excel,

the 7.5 arial font becomes 7

ConsoleAppAspose.zip (436.8 KB)

@qwerty12z,

We are working over your query and will get back to you soon.

@qwerty12z,

Thanks for being patient. We have produced the following output files on our end by using the latest versions of Aspose.Words for .NET (18.11) and Aspose.Cells for .NET (18.10) and the code you provided; do you see the same problems in these output documents?

If the problems still remain, please also provide comparison screenshots highlighting the problematic areas in above generated output documents with respect to your expected outputs and attach them here for our reference. Thanks for your cooperation.