加载水晶报告文件会出现此错误消息:加载报告失败。 [英] Loading a crystal report file gives this errormessage: Load report failed.

查看:73
本文介绍了加载水晶报告文件会出现此错误消息:加载报告失败。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我已经阅读了很多关于这个问题的帖子和帖子,但没有发现任何与我的相符的东西。

加载特定的.rpt文件时遇到问题。它在Cystal Reports中打开并运行,我已经打开了许多其他.rpt文件而没有任何问题。因此,我假设没有路径问题或访问问题。

所以,这条线让我头脑发热疼痛:

CrystalReportDocument.Load(InputFile); //加载水晶报告

< font color ="#008000"> 当我列出异常时,它给了我以下错误(对不起垃圾邮件,不太清楚是什么是重要的,什么不是):

InnerException:

InnerException:

System.Runtime.InteropServices.COMException(0x80000206):
文件C中的错误:\ DOCUME~1 \ maaubell \ LOCALS~1 \Temp \ Avalelekst_IP_batch {0FAB0245-6405-40EA-92AE- 40993E07A874} .rpt:
无效的部分。
在CrystalDecisi ons.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(对象&安培; DocumentDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath,Int32 Options)

CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()

TargetSite:

Void EnsureDocumentIsOpened()

堆栈追踪:

at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened ()
在CrystalDecisions.CrystalReports.Engine.ReportDocument.Loa d(String filename,OpenReportMethod openMethod,Int16 parentJob)
在CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
中的C:\\中的CrystalConverterTest.CrystalReportConverter.ExportToPdf(String [] _InputFiles,String _OutputFolder) \\文件和设置\ maaubell \ My Documents\Visual Studio 2005 \Projects \CrystalConverterTest \CrystalConverterTest \Form1.cs:第115行

此链接 提示我能想到的唯一可能的解决方案。其他人有什么东西可以帮助我吗?

推荐答案

这是一个更新:

Here's an update:

我得出结论它必须与文件有关,并且有彻底调查了一下。如果我在rpt文件中删除(或相应地合并)7个组头,它似乎加载正常。合并某些标题时,质量会变得不稳定,因为文本有时会遗漏在某些地方等等。它产生了一个相当大的文档,大约6225页,但这是在文件中合并组头后发生的质量损失的原因吗?

I've come to the conclusion it must be something with the file, and have investigated it thoroughly. It appears it loads normal if I delete (or merge accordingly) 7 group headers in the rpt file. When merging some headers the quality becomes unstable as the text are sometimes left out some places and so on. It produces a rather large document, about 6225 pages, but is this any reason for the loss of quality that occurs after merging group headers in the file?

我不是很熟悉Crystal Reports的一部分,请随时评论:)

I'm not very familiar with the Crystal Reports part of this so feel free to comment  :)

Mats


这篇关于加载水晶报告文件会出现此错误消息:加载报告失败。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆