This is a migrated thread and some comments may be shown as answers.

Not able to load Reports Created in Visual Studio

2 Answers 134 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Don
Top achievements
Rank 1
Don asked on 14 Mar 2013, 01:20 AM
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?

Thanks,
Don Rule
http://translationalsoftware.com


2 Answers, 1 is accepted

Sort by
0
Don
Top achievements
Rank 1
answered on 14 Mar 2013, 01:20 AM
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?
0
Elian
Telerik team
answered on 18 Mar 2013, 01:07 PM
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,
Elian
the Telerik team

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

Tags
Report Designer (standalone)
Asked by
Don
Top achievements
Rank 1
Answers by
Don
Top achievements
Rank 1
Elian
Telerik team
Share this question
or