Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Wed Feb 17, 2021 9:27 pm

I am trying to test with the following code and I get error:

Code:
Document document = new Document();
document.LoadFromFile(@"D:\css\pdf\html.html", FileFormat.Html, XHTMLValidationType.None);
document.SaveToFile("test.doc", FileFormat.Doc);

Error:

System.NotSupportedException: 'The given path's format is not supported.'

yvcabrera
 
Posts: 1
Joined: Wed Feb 17, 2021 8:27 pm

Thu Feb 18, 2021 2:03 am

Hello,

Thanks for your inquiry!

I created an HTML file and tested with the latest Sprie.Doc V 9.2.0 but did not reproduce your issue. If you were not using the latest Spire.Doc, I would suggest that you give it a try.

If the issue still exists, please provide us with your input HTML file, your system information (E.g. Win7, 64 bit) and region setting (E.g. China, Chinese) for reference. Thanks in advance.

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Fri Mar 05, 2021 8:56 am

Hello,

Hope you are doing well!

How is the issue now? If it still exists, could you please provide your input HTML file, your system information (E.g. Win7, 64 bit) and region setting (E.g. China, Chinese) to us for further investigation?

Thanks in advance.

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Return to Spire.Doc