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.

Thu Apr 06, 2017 11:04 am

Dear All,

I am trying to use Spire.NET for XLs but I am getting the following error on Visual studio 2010

The type initializer for 'spr843' threw an exception.


when I am trying to create an instance of the workbook class: Workbook workbook = new Workbook();

Workbook workbook = new Workbook();
workbook.LoadFromFile(@"..\ExceltoCSV.xls");
Worksheet sheet = workbook.Worksheets[0];
sheet.SaveToFile("sample.csv", ";", Encoding.UTF8);


Thank you very much for your support.

mer426
 
Posts: 1
Joined: Tue Dec 06, 2016 7:45 pm

Fri Apr 07, 2017 2:07 am

Dear mer426,

Thanks for your inquiry.
Please also reference the Spire.Pdf.dll file in the same folder as Spire.XLS.dll in 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 Apr 13, 2017 7:22 am

Dear mer426,

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

Thanks,
Betsy
E-iceblue support team
User avatar

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

Return to Spire.XLS