Hi, I am facing an issue when converting Html to Word (docx) documents using Aspose.Words nuget package version (19.11.0) in .Net application and seeing this error message:
More than 63 cells per row is not supported for this file format
I understand that more than 63 cells are a limitation but I could not identify 63+ cells in a table in the sample document I have attached for your reference.
I am using the following code to convert document(s):
var htmlLoadOptions = new HtmlLoadOptions();
htmlLoadOptions.PreferredControlType = HtmlControlType.StructuredDocumentTag;
// Setting the Enconding
htmlLoadOptions.Encoding = Encoding.UTF8;
// Create a new class implementing IWarningCallback which collect any warnings produced during document save.
var callback = new HandleDocumentWarnings();
// We assign the callback to the appropriate save options class. In this case, we are going to save to Word
// so we create a HtmlLoadOptions class and assign the callback there.
htmlLoadOptions.WarningCallback = callback;
// Load the Html document into memory
var document = new Document(info.File, htmlLoadOptions);
foreach (Table table in document.GetChildNodes(NodeType.Table, true))
{
foreach (Row row in table.Rows)
{
row.RowFormat.AllowBreakAcrossPages = false;
}
}
info.File.Close();
// Convert the document to a different format and save to stream
var streamResult = new MemoryStream();
var options = SaveOptions.CreateSaveOptions(SaveFormat.Docx);
options.TempFolder = WorkingDirectory;
document.Save(streamResult, options);
Can you please examine the data to check why this is the case as hundreds of documents are throwing the same error at conversion time?
Thanks in advance.
aspose_error_details.zip (380.2 KB)