with builder.RowFormat.AllowBreakAcrossPages = false, Aspose will truncate the content of rows to a single page.
After we set builder.RowFormat.AllowBreakAcrossPages = false
if the row data is within 1 page, then it is working fine.
issue: if the row data exceeds more than 1 page, then it shows only 1-page row data and the remaining data has been truncated.
can you please suggest a solution to do that If the row is more than 1 page , then can we show the rows data without truncation.
Thanks
@viswapriya_selvaraj Could you please attach your current and expected output documents here for our reference? We will check the documents and provide you more information.
Hi @alexey.noskov,
please find the current and expected output documents
current document:
current document.docx (17.5 KB)
Expected document:
Expected document.docx (18.3 KB)
In current document, second row is truncated.
As a expected behavior, second row should not be truncated.
can you please suggest a solution for the expected behavior.
Thanks
@viswapriya_selvaraj The problem is causes by different compatibility options set in your current and expected output. You can get the expected output using the following code:
Document doc = new Document(@"C:\Temp\current document.docx");
doc.CompatibilityOptions.OptimizeFor(MsWordVersion.Word2019);
doc.Save(@"C:\Temp\out.docx");