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 Mar 08, 2018 11:06 am
Hi support team,
I founed exception message on Initializer object Workbook. "The type initializer for 'spr485' threw an exception."
How to fix this issue.
PS. I use dll Spire.Xls version:7.12.14.15040
Thank you.
- Code: Select all
using Spire.Xls;
namespace Projects.Service.Spire
{
public class SpireXLSService : ISpireXLSService
{
private Workbook wb;
public SpireXLSService()
{
this.wb = new Workbook(); // This line threw exception spr485 : "The type initializer for 'spr485' threw an exception."
}
public void Dispose()
{
if (this.wb != null) this.wb.Dispose();
}
}
}
-
chevap9414
-
- Posts: 1
- Joined: Fri Dec 01, 2017 3:28 am
Fri Mar 09, 2018 3:26 am
Hello,
Thanks for your inquiry.
Please make sure that you also add the Spire.Pdf.dll into your project. If there is any question, welcome to write back.
Sincerely,
Nina
E-iceblue support team
-
Nina.Tang
-
- Posts: 1187
- Joined: Tue Sep 27, 2016 1:06 am
Fri Mar 16, 2018 9:52 am
Hi,
Greetings from E-iceblue.
Did we resolve your issue?
Your feedback will be greatly appreciated.
Sincerely,
Nina
E-iceblue support team
-
Nina.Tang
-
- Posts: 1187
- Joined: Tue Sep 27, 2016 1:06 am