I can’t convert this Word-Document into an html. I get an error message. We use .NET.
We used the following Code:
//adjust path
string path = @"…\Office\doc1.doc";
Aspose.Words.Document doc = new Document(path);
try
{
HtmlSaveOptions options = new HtmlSaveOptions(SaveFormat.Html);
doc.Save(“doc1.html”, options);
Console.WriteLine(“Done”);
}
catch(Exception ex)
{
Console.WriteLine(ex);
}
The Error Message we get is:
System.InvalidOperationException: Expected pad cells only.
bei ? .(Row )
bei ?? .VisitRowEnd(Row )
bei Aspose.Words.Tables.Row.r3ka8zscesabkstb24kjjv9sml9wq7pw ? (DocumentVisitor )
bei Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
bei Aspose.Words.Tables.Row.Accept(DocumentVisitor visitor)
bei Aspose.Words.CompositeNode.AcceptChildren(DocumentVisitor visitor)
bei Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
bei Aspose.Words.Tables.Table.Accept(DocumentVisitor visitor)
bei Aspose.Words.CompositeNode.AcceptChildren(DocumentVisitor visitor)
bei Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
bei Aspose.Words.Body.Accept(DocumentVisitor visitor)
bei ? .(Section )
bei ? . ()
bei ? .()
bei ? .()
bei ?? . ? ( )
bei Aspose.Words.Document.( , SaveOptions )
bei Aspose.Words.Document.(Stream , String , SaveOptions )
bei Aspose.Words.Document.Save(String fileName, SaveOptions saveOptions)
bei AsposeConsole.Program.WordToHtml() in C:\Dev\Tests\Aspose\AsposeTests\AsposeConsole\Program.cs:Zeile 30.
I hope you can help me
Thanks in advance
Hi Christian,
Thanks for your inquiry. 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-14173. You will be notified via this forum thread once this issue is resolved.
We apologize for your inconvenience.