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.
Fri Mar 04, 2016 7:21 am
Hello
This line: Document document = new Document(@"e:\blah.docx"); gives me this:
"The type initializer for 'sprᨵ' threw an exception."
Firstly, I thought that maybe I have a particular docx file, so I just created a new file in a which a put a simple image(not the same picture as in the 1st file), but I still receive the exception. If I delete the picture, all is good (in both situations).
Any recommendations? Or maybe I am doing something wrong...
-
alebale
-
- Posts: 2
- Joined: Tue Nov 12, 2013 10:11 am
Fri Mar 04, 2016 7:46 am
Hi,
Thanks for your posting.
To help us investigate your issue, please share your word document.
Thank you.
Best Regards,
Amy
E-iceblue support team
-
amy.zhao
-
- Posts: 2767
- Joined: Wed Jun 27, 2012 8:50 am
Fri Mar 04, 2016 11:38 am
Problem solved.
I just created a NEW project with the required references to Spire files (I put all the files in the same place) and I didn't receive any more errors. I don't know what was the real problem, but I am happy that I managed to solve it.
Thank you!
-
alebale
-
- Posts: 2
- Joined: Tue Nov 12, 2013 10:11 am
Mon Mar 07, 2016 2:22 am
Hello,
Glad to hear that. Please contact us if you have any questions.
Sincerely,
Gary
E-iceblue support team
-
Gary.zhang
-
- Posts: 1380
- Joined: Thu Apr 04, 2013 1:30 am