问题描述
我对Crystal Reports有某种问题.每当我尝试初始化ReportDocument或填充ReportViewer时,都会出现以下异常:
System.TypeInitializationException:{"CrystalDecisions.CrystalReports.Engine.ReportDocument的类型初始值设定项"引发了异常."}
例如,以下代码行会产生此类异常:
Hi I have some kind of problem with Crystal Reports. Whenever I try to initialize a ReportDocument or fill ReportViewer I got following exception:
System.TypeInitializationException: {"The type initializer for ''CrystalDecisions.CrystalReports.Engine.ReportDocument'' threw an exception."}
For instance, this line of code produces such exception:
CrystalDecisions.CrystalReports.Engine.ReportDocument repDoc = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
我已经重新安装了Crystal Reports,但没有结果.
奇怪的是,它在我们周围的每台其他计算机上都能正常工作:(.
我还能做什么?
I''ve reinstalled Crystal Reports but with no results.
It is strange that it works fine on every other computer we have around :( .
What else can I do?
推荐答案
这篇关于初始化CrystalReport文档会导致严重的崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!