Crystal Report从VS 2008升级到VS 2010 [英] Crystal Report upgraded from VS 2008 to VS 2010

查看:61
本文介绍了Crystal Report从VS 2008升级到VS 2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个最初使用visual studio 2008创建的Windows窗体项目。我决定将其升级到visual studio 2010.我的项目包括几个水晶报告(也是使用visual studio 2008创建的)。我安装了vs2010,创建了一个新项目,并添加了vs2008版本的表单和水晶报告。当我尝试编译我的项目时,我被告知水晶报告没有自动安装vs2010。所以我安装了2010年的水晶报告。在某些时候,我在vs2010的设计师中打开了一份水晶报告,以确保它出现并向我自己证明我确实安装了2010年的水晶报告。它打开很好,当我关闭时报告再次提示我:我是否要将报告保存到较新版本的水晶报告中?我说是的,确定最好现在全部升级,而不是将旧版本的报告和某些报告作为新版本。



现在,当我找到实际创建报告的代码时,我收到一个错误。更糟糕的是,这种错误甚至不能让我调试:

[MyProgramName] .vshost.exe遇到问题需要关闭。很抱歉给您带来不便。

然后它有关于发送错误报告等的内容。



它所吹的代码行是:

I have a windows forms project that I originally created using visual studio 2008. I decided to upgrade it to visual studio 2010. My project includes several crystal reports (also created with visual studio 2008). I installed vs2010, created a new project, and added the forms and crystal reports from the vs2008 version. When I tried to compile my project I was informed that crystal reports was not automatically installed with vs2010. So I installed crystal reports for 2010. At some point I opened a crystal report in the designer of vs2010 to make sure it showed up and to prove to myself that I had indeed installed the crystal reports for 2010. It opened fine and when I closed the report again I was prompted: Did I want to save the report to the newer version of crystal reports? I said yes, figuring it would be best to just upgrade it all now instead of having some reports as old version and some as new versions later.

Now, when I get to the code that actually creates the report, I get an error. Even worse, it's the kind of error that won't even let me debug:
[MyProgramName].vshost.exe has encountered a problem and needs to close. We are sorry for the inconvenience.
And then it has stuff about sending an error report, etc.

The line of code that it blows on is:

reportDocument1.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, instrFile)



(我实际上从未在查看器中显示水晶报告。我总是将其转换为PDF以向我的用户显示。所以此代码声明是报告实际创建的地方。我已经设置了数据源和登录内容。)



有没有人将vs2008水晶报告转换为vs2010?我有一种感觉,我只是错过了一些步骤,但我无法通过谷歌找到有关我的确切方案的更多信息。有没有人对我有所了解?


(I never actually display a crystal report in a viewer. I always just convert it to a PDF to show to my users. So this code statement is where the report is actually being created. I already set the data source and login stuff.)

Has anyone converted a vs2008 crystal report to vs2010? I have a feeling I'm just missing some step but I'm not able to find much information on my exact scenario via google. Does anyone have an idea for me?

推荐答案

我终于明白了。事实证明,在从2008年水晶转换到2010年之后,我的一些报告仍然有效。我终于意识到这些报告是那些没有标识的报告。看起来Crystal Reports 2010不喜欢TIF文件格式,即使我能够在2008年使用它。我将我的徽标转换为JPG,它运行得很好。我真的希望有一个更好的错误信息,为我省去一些麻烦。
I finally figured it out. Turns out a couple of my reports still worked after the conversion from crystal 2008 to 2010. I finally realized that those reports were ones that did not have logos on them. It appears that Crystal Reports 2010 does not like the TIF file format, even though I was able to use it in 2008. I converted my logos to JPG and it works just fine. I really wish there had been a nicer error message for this to save me some trouble.


你可以看看





http://forums.sdn.sap.com/forum.jspa?forumID=313&start=0
You can check it out


http://forums.sdn.sap.com/forum.jspa?forumID=313&start=0


我也是一样的错误。

它说我的应用程序mfc应用程序遇到了问题,需要关闭。我们很抱歉有不便之处。

我的报告甚至没有包含徽标。

plz建议这类错误的可能解决方案。
i am also getting the same error.
It says "MyApplication mfc application has encountered a problem and needs to close. We are sorry for inconvience."
and my reports does'nt even contain logos.
plz suggest for possible solutions for such kind of errors.


这篇关于Crystal Report从VS 2008升级到VS 2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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