问题描述
有没有人在使用Visual Studio 2005中的报表更新(全新安装)到Crystal Reports XI R2后出现此错误?我在这里发帖是因为我不确定它是否是Crystal报告XI R2 bug或Visual Studios 2005问题。我认为可能是我的编程错了所以我尝试了R2附带的示例。如果这些应该起作用,因为开发软件的人写了例子。即使这些例子也给了我同样的错误。
自定义工具是CrystalDecisions.VSDesigner.CodeGen.ReportCodeGenerator
我有这些参考:
CrystalDecisions.CrystalReports.Engine - v2.0.50526
CrystalDecisions.Enterprise.Framework - v1.1.4322
CrystalDecisions.Enterprise.InfoStore - v1.1.4322
CrystalDecisions.ReportSource - v2.0.50526
CrystalDecisions.Shared - v2.0.50526
CrystalDecisions.Windows.Forms - v2 .0.50526
我试着添加它没有运气。
CrystalDecisions.VSDesigner
我甚至尝试了这些作为进口
'进口 CrystalDecisions.CrystalReports.Engine
'导入 CrystalDecisions.Enterprise.Framework
'导入 CrystalDecisions.Enterprise.InfoStore
'进口 CrystalDecisions.ReportSource
'进口 Cryst alDecisions.Shared
'进口 CrystalDecisions.Windows.Forms
'进口 CrystalDecisions.VSDesigner
自定义工具错误:"代码生成器'ReportCodeGenerator'失败。异常堆栈= System.Exception:加载报告失败。 ---> System.Runtime.InteropServices.COMException(0x80041004):没有足够的内存来运行。
在CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath,Int32 Options)
在CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper。在CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
---结束内部异常堆栈跟踪---
在CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper。在CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename,OpenReportMethod openMethod,Int16 parentJob)中的EnsureDocumentIsOpened()
在CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
at at CrystalDecisions.VSDesigner.CodeGen.ReportClassWriter..ctor(String filePath)
在CrystalDecisions.VSDesigner.CodeGen.ReportCodeGenerator.GenerateCode(String inputFileName,String inputFileContent)"C:\ Pro graming \vs 2005 \ Visis Services \ Project Project \ tptFindEquipment.rpt 1 1 Visual_Services
其他错误
Has anyone got this error after updating (fresh install) to Crystal Reports XI R2 with reports in Visual Studio 2005? I am posting here because I am not sure if it is a Crystal reports XI R2 bug or a Visual Studios 2005 problem. I thought it might be that my programming was wrong so I tried the samples that come with R2. If anything these should work since the people who developed the software wrote the examples. Even the examples gave me these same errors.
Custom Tool is CrystalDecisions.VSDesigner.CodeGen.ReportCodeGenerator
I have these refernces:
CrystalDecisions.CrystalReports.Engine - v2.0.50526
CrystalDecisions.Enterprise.Framework - v1.1.4322
CrystalDecisions.Enterprise.InfoStore - v1.1.4322
CrystalDecisions.ReportSource - v2.0.50526
CrystalDecisions.Shared - v2.0.50526
CrystalDecisions.Windows.Forms - v2.0.50526
I tried adding this with no luck.
CrystalDecisions.VSDesigner
I have even tried these as Imports
'Imports CrystalDecisions.CrystalReports.Engine
'Imports CrystalDecisions.Enterprise.Framework
'Imports CrystalDecisions.Enterprise.InfoStore
'Imports CrystalDecisions.ReportSource
'Imports CrystalDecisions.Shared
'Imports CrystalDecisions.Windows.Forms
'Imports CrystalDecisions.VSDesigner
Custom tool error: "Code generator 'ReportCodeGenerator' failed. Exception stack = System.Exception: Load report failed. ---> System.Runtime.InteropServices.COMException (0x80041004): Not enough memory for operation.
at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
--- End of inner exception stack trace ---
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
at CrystalDecisions.VSDesigner.CodeGen.ReportClassWriter..ctor(String filePath)
at CrystalDecisions.VSDesigner.CodeGen.ReportCodeGenerator.GenerateCode(String inputFileName, String inputFileContent)" C:\Programming Stuff\vs 2005\Visual Services\Main Project\rptFindEquipment.rpt 1 1 Visual_Services
Other Errors
当我进行一些更改以使其工作时,还有一点。
FormName:frmMain
错误消息:加载报告失败。
错误类型:System.Exception
错误来源:CrystalDecisions.CrystalReports.Engine
错误Stacktrace:在CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened( )
在CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename,OpenReportMethod openMethod,Int16 parentJob)
在CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
在BarCodes上。 frmMain.RunReportQuery(String stQuery)
Here is a little more when I make a few changes to get it to work.
FormName: frmMain
Error Message: Load report failed.
Error Type: System.Exception
Error Source: CrystalDecisions.CrystalReports.Engine
Error Stacktrace: at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
at BarCodes.frmMain.RunReportQuery(String stQuery)
推荐答案
这篇关于Crystal报告XI R2和Visual Studio 2005问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!