Hello,
I tried FreeSpire.Doc in order to be able to transform HTML file into Docx file.
I tried to do the same code as we can find on the tutoriel :
Document document = new Document();
document.LoadFromFile(@"C:\Users\ThomasFABRE\Documents\rapportChantier.html", FileFormat.Html, XHTMLValidationType.None);
string res = @"C:\Users\ThomasFABRE\Documents\rapportChantier2.docx";
document.SaveToFile(res, FileFormat.Docx);
But when I do that I have the error : 'Object reference not set to an instance of an object.' But my file does exist and when I try to open a docx file in the same root, I can open it.
What shall I do in order to open this file ?
Best regards,
Tfabre