Hi there,
I am saving an existing word document as HTML file that contains only a single chart using Aspose.Word for .Net.
When I create a chart(Line + Column) with Column series on Primary Y and Line series on Secondary Y, the document gets saved as HTML file but on placing, Column series on Secondary Y and Line series on Primary Y, It gives following error message:
"Abscissa must cross ordinate"
Please check the below code:
private void SaveAsHTML()
{
try
{
Aspose.Words.License license = new Aspose.Words.License();
license.SetLicense(“Aspose.Words.lic”);
string outputFile = “WordReport.docx”;
Document docNew = new Document(DataDir + outputFile);
string htmlOutputFile = “WordReport.html”;
docNew.Save(DataDir + htmlOutputFile);
}
catch (Exception ex)
{
}
}
Please find the attached Word doc namely “WordReport.docx” that I am using in the code above.