We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Wrong Word table column width exported from Excel

Hi, we are trying to export a table from an Excel spreadsheet range to a new Word document.

In the attached spreadsheet (Test1.xlsx), the range IS_segment_N has 8 columns. The last 7 columns have the same width size (7).
Then, we export the range with the attached C# program by using

  • Aspose.Cells.HtmlSaveOptions to get the HTML of the range
  • Aspose.Words.DocumentBuilder.InsertHtml to import the html table into a new Word document.

However, when we open the generated document (Test1.docx), the last column has a width size different from the previous 6 columns (1.44cm instead of 1.46cm).
We want the last 7 columns to have the same width, as it is in the spreadsheet.

Attachments.zip (53.7 KB)

@davidepedrocca

Please generate the HTML using the latest version of Aspose.Cells 20.3 for .NET and share it here for testing. We will investigate the issue and provide you more information on it.

@davidepedrocca

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-20220 . You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.