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

Free Support Forum - aspose.com

"Expected pad cells only.' exception occurred while converting doc to html

Hi Team,

I am getting below code to convert doc content to HTML.

string path = @"…\Office\doc1.doc";
Aspose.Words.Document doc = new Document(path);
try
{
HtmlSaveOptions options = new HtmlSaveOptions(SaveFormat.Html);
var memoryStream = new MemoryStream();
doc.Save(memoryStream, options);
Console.WriteLine(“Done”);
}
catch(Exception ex)
{
Console.WriteLine(ex);
}

I am ending up with “Expected pad cells only” expetion:
at .(Row )
at ​ .VisitRowEnd(Row )
at Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptChildren(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptChildren(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptChildren(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptChildren(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptChildren(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)

Please suggest how to get rid of this error.

@msingh02

Thanks for your inquiry. Please ZIP and attach your input Word document here for testing. We will investigate the issue on our side and provide you more information.

Attached the file.doc1.zip (9.2 KB)

@msingh02

Thanks for sharing the detail. 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-17580. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Any update on this?

@msingh02,

Unfortunately, this issue is not resolved yet. This issue is currently pending for analysis and is in the queue. We will inform you via this thread as soon as this issue is resolved. We apologize for your inconvenience.

@msingh02,

If this issue (WORDSNET-17580) is important to you, and for the fast resolution of this issue, please have a look at the paid support options - e.g. purchasing ‘Paid Support’ will allow you to post your issues in our Paid Support Helpdesk and raise the priority of this issue. Many ‘Paid Support’ customers find that this leads to their issues being fixed in the next release of the software.

If you would like to take advantage of the ‘Paid Support’ then please request a quote in our purchase forum - https://forum.aspose.com/c/purchase

We apologize for any inconvenience and thank you for your understanding.

The issues you have found earlier (filed as WORDSNET-17580) have been fixed in this Aspose.Words for .NET 19.3 update and this Aspose.Words for Java 19.3 update.