ASPOSE.WORD 另存为HTML
var fi = new FileInfo(Environment.CurrentDirectory + "\AE9302C0-AE48-4F4B-8489-6A428D9163C9_ALL.doc");
var doc = new Document(fi.FullName);
var options = new HtmlSaveOptions(SaveFormat.Html)
{
ExportTextInputFormFieldAsText = false,
ExportImagesAsBase64 = true
};
doc.Save(Environment.CurrentDirectory + "\Document.SaveWithOptions Out.html", options);
Console.WriteLine("恭喜,保存成功!");
是什么问题呢?Word转HTML也可以用Spire.Doc
//Create word document
Document document = new Document();
document.LoadFromFile(@"..\wordtohtml.doc");
//Save doc file to html
document.SaveToFile("toHTML.html", FileFormat.Html);