none
How to a add .rdlc file to a Project/Solution in Visual Studio

    Question

  • Hi,

     

    So I have now some reports that I want to add to a project. In the project there are already two kinds of reports that someone add in the past and they don't interest me anymore. Now I want to add the already created Report to the Project. The reports are coded as .rdl files. I converted them to .rdlc, because I read that this important when I want to use them in Visual Studio 2008. Now I don't know how I have to add them. Do somebody how I can do that? Quick reply please.

     

    Yours

    VisualFighter

    Thursday, August 19, 2010 8:21 AM

Answers

  • Hi VisualFighter,

    If you only want to add existing reports to the project, we can simply right click the project which you want add reports in the Solution Explorer, select Add and click Existing Item… After select your report (RDLC file) in the dialog and click Add button, the report will be included in the project directory. To remove one report from the project, we can right click the report in the Solution Explorer and select Exclude From Project.

    For more information about converting RDL to RDLC and using them in project, you can refer to: http://msdn.microsoft.com/en-us/library/ms252109(v=VS.90).aspx

     

    In addition, please be aware that ReportViewer in Visual Studio 2008 supports RDL 2005 features. To use RDL 2008, you need to use ReportViewer 2010.

    For more information, you can refer to: http://msdn.microsoft.com/en-us/library/ee960138.aspx

     

    If you have any question, please feel free to ask.

     

    Thanks,

    Tony Chain

    Monday, August 23, 2010 9:14 AM

All replies

  • Here is a screenshot of the solution explorer. You see there these two kinds of reports, which I want to replace with the one I made with the Report Builder.

     

    Thursday, August 19, 2010 8:25 AM
  • Somebody got an idea how to do that?
    Thursday, August 19, 2010 12:25 PM
  • bumping.........
    Thursday, August 19, 2010 3:53 PM
  • Hi VisualFighter,

    If you only want to add existing reports to the project, we can simply right click the project which you want add reports in the Solution Explorer, select Add and click Existing Item… After select your report (RDLC file) in the dialog and click Add button, the report will be included in the project directory. To remove one report from the project, we can right click the report in the Solution Explorer and select Exclude From Project.

    For more information about converting RDL to RDLC and using them in project, you can refer to: http://msdn.microsoft.com/en-us/library/ms252109(v=VS.90).aspx

     

    In addition, please be aware that ReportViewer in Visual Studio 2008 supports RDL 2005 features. To use RDL 2008, you need to use ReportViewer 2010.

    For more information, you can refer to: http://msdn.microsoft.com/en-us/library/ee960138.aspx

     

    If you have any question, please feel free to ask.

     

    Thanks,

    Tony Chain

    Monday, August 23, 2010 9:14 AM
  • Hi Tony,

     

    Thanks for your response, but this not what exactly what I mean. After I double click the rdlc file that I added it shows just code and I want to see it in a graph.

     

    Yours,

     

    VisualFighter

    Wednesday, August 25, 2010 12:43 PM
  • Hi VisualFighter,

    It might be caused by the version of the RDLC file. As I mentioned before, only RDLC files which converted form Reporting Services 2005 RDL files can be used in Visual Studio 2008.

    To check the version, we can open the RDL or RDLC files by notepad, and then we will see the report namespace in the second line.

    If it created by Reporting Services 2005, the namespace might be: xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition"

    By Reporting Services 2008, the namespace might be: xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition"

     

    Hope this helps.

     

    Thanks,

    Tony Chain

    Thursday, August 26, 2010 2:03 AM
  • Hi Tony,

    I see I have the wrong reporting services. How i can solve the problem now? What have I to install?

     

    Thursday, August 26, 2010 9:45 AM
  • Another question:

     

    In which Visual Studio can I use the rdl made by Reporting Services 2008.

    Thursday, August 26, 2010 9:51 AM
  • Hi VisualFighter,

    If your RDL or RDLC files are created by Reporting Services 2008, you need to use ReportViewer in Visual Studio 2010.

    For more information, you can refer to: http://blogs.msdn.com/b/robertbruckner/archive/2010/04/25/visual-studio-2010-report-viewer-available.aspx

     

    Thanks,

    Tony Chain

    Monday, August 30, 2010 7:45 AM