Converting DOCX to HTML

We are evaluating the Aspose.Word product, and we found that some of the files are not properly converting to HTML format.
Refer attached file.

I am using trailing code for this.

private void ConvertByteToHTML(string path, HtmlTextWriter writer)
{
    using (var stream = File.OpenRead(path))
    {
        ConvertByteToHTML(stream);
    }
}

private static Document Load(Stream stream)
{
    return new Document(stream);
}

private void ConvertByteToHTML(Stream stream)
{
    Load(stream).Save(Response, "vikas", ContentDisposition.Inline, new Aspose.Words.Saving.HtmlSaveOptions() { ExportImagesAsBase64 = true });
}

Hi Vikas,

Thanks for your inquiry. Please upgrade to the latest version of Aspose.Words for .NET 16.1.0 and try using the following code:

Document doc = new Document(MyDir + @"1890.docx");
HtmlSaveOptions opts = new HtmlSaveOptions(SaveFormat.Html);
opts.ExportImagesAsBase64 = true;
opts.ExportHeadersFootersMode = ExportHeadersFootersMode.None;
doc.Save(MyDir + @"16.1.0.html", opts);

Hope, this helps.

Best regards,