I use code in your example:
- Code: Select all
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
'Open an html file.
Dim document As New Document()
document.LoadFromFile("X:\path\111.htm", Spire.Doc.FileFormat.Html, XHTMLValidationType.None)
'Save it to a Word document.
document.SaveToFile("HtmlFileToWord.docx", Spire.Doc.FileFormat.Docx)
'Launch the file.
WordDocViewer("HtmlFileToWord.docx")
End Sub
I compile the code without error, and begin to run it. The function 'LoadFromFile' take a long time to do its work. Finally I get error: The format of input string is incorrect at function 'LoadFromFile' .
Who can help?
Thanks.