无法在Visual Studio 2010中打开.rpt Crystal Reports文件 [英] Cannot open .rpt Crystal Reports file in Visual Studio 2010

查看:2191
本文介绍了无法在Visual Studio 2010中打开.rpt Crystal Reports文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经接管了一个现有的C#项目,并使用Visual Studio 2010与.NET框架4.0。

I have taken over an existing C# project and am using Visual Studio 2010 with .NET framework 4.0.

应用程序使用水晶报表。似乎报告的定义位于一个单独定位的文件夹中,其中包含许多.rpt文件。

The application uses Crystal Reports. It seems like the definitions of the reports lie in a separately located folder containing many .rpt files.

当我运行应用程序时, t。我现在想调试不工作的报告,并且还想添加一些新的水晶报表。

When I run the application, some of these reports work and others don't. I now want to debug the reports that don't work and also want to add some new Crystal Reports.

问题是,每当我尝试打开一个.rpt文件在Visual Studio中我得到乱码 - 它看起来像二进制代码。

Problem is, whenever I try to open one of the .rpt files in Visual Studio I get gibberish - it looks like binary code.

有关信息:
我已经知道Crystal Reports不符合Visual Studio 2010 。因此,我已经从 SAP Crystal Reports版本的Visual Studio 2010 - 点击一次(64位) http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp ,如使用Visual Studio 2010创建Crystal Reports rpt文件 http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/fb6d3588- 1481-46a2-8284-90dbb40c42f6

For information: I already know that Crystal Reports does not come standard with Visual Studio 2010. I have therefore already installed SAP Crystal Reports, version for Visual Studio 2010 - Click Once (64 Bit) from the location http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp as was suggested in Creating a Crystal Reports rpt file using Visual Studio 2010 and http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/fb6d3588-1481-46a2-8284-90dbb40c42f6

我安装错误的东西或者我缺少依赖项吗? .rpt文件不是Visual Studio项目的一部分。它们是文件夹中的单独文件。我如何打开它们,以便我可以在Visual Studio中执行编辑?

Did I install the wrong thing or am I missing a dependency? The .rpt files are not part of the Visual Studio project. They are separate files in a folder. How do I go about opening them so that I can perform edits in Visual Studio?

推荐答案

我怀疑文件类型关联.RPT断开。您可能在安装Crystal Reports并意外选择了其他任何东西以打开它之前已经尝试打开.RPT。

I suspect the file-type association for .RPT is broken. You may have tried opening the .RPT before you had Crystal Reports installed and accidentally selected something else to open it. Now it probably automatically opens them incorrectly.

本文介绍Windows版本之间的更改以及如何编辑它们:http://www.technize.com/advanced-file-types-association-in-windows-7/

This article describes changes between Windows versions and how to edit them: http://www.technize.com/advanced-file-types-association-in-windows-7/

也就是说,有一个更快捷的方法来快速测试以确认这些.RPT文件是否有效。

That said, there is a quicker easier way to do a quick test to confirm if those .RPT files are valid.

Visual Studio,在你的C#项目中,做一个'添加新项目>报告>水晶报表',它将启动一个向导添加报表到你的项目。发生这种情况时,系统会提示您创建新报告或从现有文件打开。选择打开现有并浏览到您的.RPT文件。这将迫使Crystal Reports尝试在基于Visual Studio的Crystal Report设计器中打开此文件。

In Visual Studio, inside your C# project, do an 'Add New Item > Reporting > Crystal Reports' and it will start a wizard for adding reports to your project. When this happens, you'll be prompted to 'create a new report' or to 'open from existing file'. Choose open existing and browse to your .RPT file. This should force Crystal Reports to attempt to open this file in the Visual Studio based Crystal Report designer.

最好的运气。

这篇关于无法在Visual Studio 2010中打开.rpt Crystal Reports文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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