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("恭喜,保存成功!");

posted @ 2017-02-09 10:51  糖豆爸爸  阅读(2619)  评论(0编辑  收藏  举报
Live2D