如何在Visual Studio中打开.rdl文件 [英] How to open .rdl file in visual studio
问题描述
我是新来的.
我的系统中有一个.rdl文件.我需要在Visual Studio中打开此rdl文件. 当我尝试打开此文件时,我得到了一个XML文件,无法看到设计器格式.
I have a .rdl file in my system. I needed to open this rdl file in visual studio. When i try to open this file i got a XML file, and 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?
如果不可能的话,那是什么原因?
if it is not possible then what is the reason for that?
如果可能的话,为什么我无法打开文件?
if it is possible then why i can't open the file?
打开该文件还需要其他文件吗?
and is any other files are needed to open this file?
请.....
预先感谢
推荐答案
正确,报表定义语言只是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添加到项目中
- 通过双击新添加的报告项目项来打开报告设计器
- Install SSDT for Visual Studio if you haven't already done so
- Create a new project using the 'Report Server Project' template
- Copy/move the .rdl file(s) you have into the folder for the newly created project (eg ..\Visual Studio 2015\Projects\My Report Project\My Report Project)
- Use the "Add Existing Item..." context menu option in Solution Explorer to add the .rdl to the project
- Open report designer by double-clicking the newly added report project item(s)
这篇关于如何在Visual Studio中打开.rdl文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!