Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Sat Feb 11, 2017 9:23 am

dear forum

i have a new blank project, then i added the Spire.XLS.dll and just added the first line of your sample code:
Workbook workbook = new Workbook();

of course i also added: using Spire.Xls;

this immediately ends with TypeInitializationException for "spr840". (attached picture)

do i miss something? i read a lot, but there was no solution for me...


thanks for your assisstance
marco
Attachments
exception.jpg
exception.jpg (240.65 KiB) Viewed 2299 times

nullpunkt
 
Posts: 2
Joined: Fri Feb 10, 2017 2:04 pm

Mon Feb 13, 2017 1:52 am

Dear marco,

Thanks for your inquiry and sorry for late reply as weekend.
Please also reference the Spire.Pdf.dll from the same folder as Spire.XLS.dll into your project.
If there is any question, please let me know.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Thu Feb 16, 2017 7:56 am

Hello,

How is the issue now ? Could you please give us some feedback at your convenience?

Thanks,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2767
Joined: Wed Jun 27, 2012 8:50 am

Wed Feb 22, 2017 4:07 pm

Hi there :)

Sorry for delay, but it was a busy month.
The Problem is really simple. The both DLLs had just different Versions (Framework).

I cannot say how this was happening.
Shame on me.

Anyway: Thanks for your great Product and for your assistance.

Nullpunkt

nullpunkt
 
Posts: 2
Joined: Fri Feb 10, 2017 2:04 pm

Thu Feb 23, 2017 1:43 am

Dear Nullpunkt,

Thanks for your feedback.
Nerver mind :) , please feel free to contact us if there is any question.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.XLS