如何在 Visual Studio 中打开 .rdl 文件? [英] How to open an .rdl file in Visual Studio?

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

问题描述

我有一个需要在 Visual Studio 中打开的 .rdl 文件.当我尝试打开这个文件时,我得到了一个 XML 文件.但是,我无法看到设计器格式.

I have an .rdl file that I need to open in Visual Studio. When I try to open this file, I got an XML file. However, I am unable to see the designer format.

我不知道使用哪个版本的 Visual Studio 来创建这个 .rdl 文件.

I don't know which version of Visual Studio is used to create this .rdl file.

是否可以在 Visual Studio 中打开一个随机的 .rdl 文件并查看设计器格式,如果可以,我该怎么做?

Is it possible to open a random .rdl file in Visual Studio and see the designer format and, if so, how can I do that?

推荐答案

正确,报表定义语言只是 XML.而且,与任何其他文件一样,您可以在 Visual Studio 中打开它(文件/打开/文件...),就像在文本编辑器中一样.为了查看设计器,您需要通过将其作为报表服务器项目的一部分来为 Visual Studio 提供一些有关文件类型的上下文.

Correct, the Report Definition Language is just XML. And, as with any other file, you can just open it (File/Open/File...) in Visual Studio, just like in a text editor. In order to see a designer you need to give Visual Studio a bit of context about what sort of file it is by making it part of a Report Server Project.

  • 为 Visual Studio 安装 SSDT 如果你还没有这样做
  • 使用报表服务器项目"模板创建新项目
  • 将您拥有的 .rdl 文件复制/移动到新创建的项目的文件夹中(例如 ..\Visual Studio 2015\Projects\My Report Project\My Report Project)
  • 使用解决方案资源管理器中的添加现有项目..."上下文菜单选项将 .rdl 添加到项目
  • 双击新添加的报表项目项打开报表设计器

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

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