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

Free Support Forum - aspose.com

Prevent Table Cutting from Left or Right Page Edges when Converting HTML to Word | C# .NET

Hi,

I am using Aspose.Words (20.11.0) to generate docx file from Html. In generated docx, the table is not aligned properly. (text cut off from the right). I am using the following snippet to autoFit the table.

table.AutoFit(AutoFitBehavior.AutoFitToWindow);

For your reference, I have attached both input and output files.
Please guide me how to fix this issue.

input.zip (7.9 KB)
Output.docx (18.1 KB)

@kainat123,

We tested the scenario and have managed to reproduce this problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-22725. We will further look into the details of this problem and will keep you updated here on the status of correction. We apologize for your inconvenience.

Hi,
Is there any update on this issue?

@kainat123,

WORDSNET-22725 is currently pending for analysis and is in the queue. We will inform you here as soon as this issue will get resolved or any further updates may be available in future.