Search code examples
c#.netasposeaspose.words

table overlap to next chart when allow autofit in aspose.word in .net c#


I have a table named table and then i put a chart in my .docx file .but when I set

table.AllowAutoFit = true;

and

table.AutoFit(AutoFitBehavior.FixedColumnWidths);

table overlap to next char.

how to fix this problem?


Solution

  • I solve it by noob solution: after table I put a loop of new line

    for (int i = 0; i < 12; i++)
          {
              builder.InsertParagraph();
              builder.Writeln();
          }
    

    I know above code is noob solution but it is only solution for solve this problem.(without using pagebreak)