简体   繁体   English

Crystal Reports和VS2010

[英]Crystal Reports and VS2010

We have Crystal Reports running and it is tied into our VS2010 installation. 我们正在运行Crystal Reports,它已与VS2010安装绑定在一起。 I have not looked at the instance in a long time because we had a devoted Crystal developer on board, however he is gone now and I need to make a few changes. 我很久没有看过这个实例了,因为我们有一位忠诚的Crystal开发人员,但他现在已经走了,我需要做一些改动。 When I try to open up the .rpt file in VS2010 all I get is garbage, not the Crystal Report with the GUI. 当我尝试在VS2010中打开.rpt文件时,我得到的只是垃圾,而不是带有GUI的Crystal Report。 What do I need to configure/install to get to see this inside VS2010? 我需要配置/安装什么才能在VS2010中看到它?

EDIT: When I go to my .rpt file to edit it with Crystal Reports, I get a white screen filled with what appears to be random HEX character sets and periods. 编辑:当我转到我的.rpt文件使用Crystal Reports编辑它时,我得到一个白色屏幕,其中充满了似乎是随机的十六进制字符集和句点。 I have downloaded the CR for Visual Studio, however it still happens, is there an extension I need to include somewhere? 我已经下载了Visual Studio的CR,但它仍然会发生,我需要在某处扩展吗? I have my target framework as 4.0 and I have the CrystalDecisions assemblies loaded in my web.config. 我的目标框架为4.0,我在web.config中加载了CrystalDecisions程序集。

I also had this problem after installing "SAP Crystal Reports, version for Microsoft Visual Studio" recently - over two years later. 最近两年后安装“SAP Crystal Studio版本,用于Microsoft Visual Studio”后,我也遇到了这个问题。

I specifically installed Support Pack 8 on 64-bit Windows 7 Pro and found that the fix for me was to: 我在64位Windows 7 Pro上专门安装了Support Pack 8,发现对我的修复是:

(1) Run the install executable rather than an MSI per SAP's note that this is critical to full integration with Visual Studio (all the way back to the RTM release): (1)按照SAP的说明运行安装可执行文件而不是MSI,这对于与Visual Studio完全集成至关重要 (一直回到RTM版本):

Please note: To integrate "SAP Crystal Reports, developer version for Microsoft Visual Studio" into VS 2010 or 2012, you must run the Install Executable. 请注意:要将“SAP Crystal Reports,Microsoft Visual Studio的开发人员版本”集成到VS 2010或2012中,必须运行“安装可执行文件”。 Running the MSI will not fully integrate Crystal Reports into VS. 运行MSI不会将Crystal Reports完全集成到VS. MSI files by definition are for runtime distribution only. 根据定义,MSI文件仅用于运行时分发。

(2) Run it with Visual Studio closed. (2)在Visual Studio关闭的情况下运行它。

(3) Run it as Administrator. (3)以管理员身份运行。

Even doing (1) and (2) in the list above without (3) yielded an error at the end of installation (even though the account I used was a member of the local Administrators group). 即使在上面的列表中执行(1)(2)而没有(3) ,也会在安装结束时产生错误(即使我使用的帐户是本地Administrators组的成员)。 Unfortunately I (uncharacteristically) did not note the error and just continued. 不幸的是,我(不具有特色)没有注意到该错误,只是继续进行。 :P :P

Bottom line, even though "SAP Crystal Reports, version for Microsoft Visual Studio" showed in Windows' Programs and Features control panel and I could add CR items to and reference CR assemblies in Visual Studio projects afterward, hex-like garbage rather than the expected report designer greeted me when I opened CR .rpt files in Visual Studio - just like the OP described . 最重要的是,即使Windows的“程序和功能”控制面板中显示了“ SAP Crystal Reports,用于Microsoft Visual Studio的版本”,此后,我仍可以向Visual Studio项目中添加CR项并在其中引用CR程序集,类似于十六进制的垃圾,而不是预期的当我在Visual Studio中打开CR .rpt文件时,报表设计师向我致意 - 就像所描述的OP一样

So I closed Visual Studio and uninstalled "SAP Crystal Reports, version for Microsoft Visual Studio" through Windows' Programs and Features control panel. 因此,我关闭了Visual Studio并通过Windows的“程序和功能”控制面板卸载了“SAP Crystal Reports,Microsoft Visual Studio版本”。

Further doing (3) in the list above when I ran the installer executable again (ie running it as Administrator), I encountered no errors; 当我再次运行安装程序可执行文件(即以管理员身份运行)时 ,在上面的列表中进一步执行(3) ,我没有遇到任何错误; and afterward the expected report designer rather than hex-like garbage greeted me when I opened CR .rpt files in Visual Studio: problem solved. 然后当我在Visual Studio中打开CR .rpt文件时,预期的报表设计器而不是类似十六进制的垃圾问候了我:问题解决了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM