Not able to load Reports Created in Visual Studio

3 posts, 0 answers
  1. Don
    Don avatar
    18 posts
    Member since:
    Feb 2013

    Posted 13 Mar 2013 Link to this post

    Environment Visual Studio 2012, Windows 7 Report Designer latest

    I've created a couple of reports in Visual Studio in a project called CdssReportsNew and a folder called Reports
    In report designer Open report... and navigate to the bin Debug directory
    Select the the CdssReportsNew.dll and open 
    Reporting Import Wizard appears but no reports to import

    Test by creating new Report called Report1 in Visual Studio. Report1 shows up in the import wizard (although i think not immediately)

    change the namespace for my reports from CdssReportsNew.Reports to CdssReports and move them to the root of the project directory

    Still not able to find them in the Import wizard.

    Any other suggestions?

    Don Rule

  2. Don
    Don avatar
    18 posts
    Member since:
    Feb 2013

    Posted 13 Mar 2013 Link to this post

    One thing occurs to me and wondering if it is important. In the reports that I am having trouble with I have a number of references to a business object that look like this

                this.objectDataSource7.DataMember = "CaseInfos";
                this.objectDataSource7.DataSource = typeof(CdssReports.Models.PatientReportContext);
                this.objectDataSource7.Name = "objectDataSource7";

    Would the designer ignore these reports if it didn't understand CdssReports.Models.PatientReportContext?
  3. DevCraft banner
  4. Elian
    Elian avatar
    435 posts

    Posted 18 Mar 2013 Link to this post

    Hi Don,

    In order for a report to be imported, it must be first be instantiated. So if a class cannot be instantiated for some reason, it won't be listed as available for export. In your case, as you have said,  the missing type in the DataSource prevents the report from instantiating successfully. 

    Kind regards,
    the Telerik team

    Telerik Reporting Q1 2013 available for download with impressive new visualizations. Download today from your account.

Back to Top