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 Nov 08, 2018 7:15 am

在C#里把Excel中的数据复制到Word中,dll都加好了却总是出现错误:
“System.TypeInitializationException”类型的未经处理的异常在 Spire.XLS.dll 中发生
其他信息: “spr1055”的类型初始值设定项引发异常。
复制方法是根据e—iceblue提供的那个方法

123fff
 
Posts: 3
Joined: Thu Nov 08, 2018 1:55 am

Thu Nov 08, 2018 8:28 am

您好!

感谢咨询!
从你的异常来看,应该是引用DLL 的问题。如果你要在同一个工程中同时使用两个产品的话,请下载使用Spire.Office并引用对应的DLL。另外,请注意Spire.pdf.dll是必须的,请确保项目中引用了它。
目前Spire.Office的最新版本是3.10.3. 请从以下链接下载:
http://www.e-iceblue.cn/Downloads/Spire-Office-NET.html

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Return to Spire.XLS

cron