Hi There,
I am using Aspose.word, and at some place I need to convert to dotx file into html document,
After converting to HTML we checked and compared with actual document that it do not keeping the original format.
Can you please let me know if i am doing anything wrong or incomplete
Here I am pasting code snipped
var file = httpRequest.Files[“uploadFile”];
MemoryStream mstream = new MemoryStream();
file.InputStream.CopyTo(mstream);
mstream.Position = 0;
var filePath = HttpContext.Current.Server.MapPath("~/Files/Exports/" + Guid.NewGuid());
Aspose.Words.Document docss = new Aspose.Words.Document(mstream);
var htmlOptions = new Aspose.Words.Saving.HtmlSaveOptions();
htmlOptions.ExportImagesAsBase64 = true;
docss.Save(filePath + ".html", htmlOptions);