How to open an .rdl file in Visual Studio?

后端 未结 2 1678
面向向阳花
面向向阳花 2021-01-01 10:34

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.

I don\'t k

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-01 11:16

    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.

    • 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)

提交回复
热议问题