正确,报表定义语言只是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)