I've a html file which I'm trying to save to Docx with the styles but couldn't make it work. Can you please help me with this?
Code:
- Code: Select all
var document = new Spire.Doc.Document();
document.LoadFromFile(@"C:\Test\Data\Summary.html", Spire.Doc.FileFormat.Html, XHTMLValidationType.None);
document.SaveToFile(@"C:\Test\test.docx", Spire.Doc.FileFormat.Docx);
I'm using all the latest spire dll's with license. Appreciate your immediate help.
Thanks,
Santhoshi.