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

SubReport - No report in object instance

3 Answers 185 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jorden
Top achievements
Rank 1
Jorden asked on 08 Sep 2016, 11:42 AM

Hi,

I'm working with Telerik Reporting Q1 2016 SP1 version 10.0.16.204. I have made reports with sub reports in the past (using the same version of telerik reporting). I am trying to create a report with a sub report now and it does not show any sub reports in the object instance list. 

Am I missing something here?

The previous created reports still have their respective sub-reports but trying to add a newly made report as a sub report is not possible. The only sub reports in the list are the ones already made in the past.

I see the following (see attached screenshot).

Any tips would be greatly appreciated since we require reports using sub reports.

3 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 09 Sep 2016, 12:39 PM
Hi Rob,

The InstanceReportSource ('Object instance' option) is not recommended for usage. It will create an instance of the sub report in the main report's list of elements.
In any case, please check the following settings:
  1. The sub reports - they must have a default parameterless constructor;
  2. The solution - test to rebuild the whole solution to get new types loaded;


The recommended light-weighted approach is to use the TypeReportSource ('Type name' option). The reporting engine will create an instance of the selected report at run-time through System.Reflection and the report class' default constructor.


Let us know if you need further help.

Regards,
Stef
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Jorden
Top achievements
Rank 1
answered on 12 Sep 2016, 06:27 AM

Hello Stef,

I have tried it with a blank report and trying to add a blank report as a sub report but this does not seem to be working in the current project solution that I am working in. The sub report has its initial default constructor and I tried rebuilding the whole solution multiple times.

I have tried creating a blank project (wcf) and adding a report with sub reports (both blank) using the TypeReportSource option. This seems to be working in the blank project I made but not in the existing solution.

Any other pointers would be greatly appreciated.

 

0
Stef
Telerik team
answered on 12 Sep 2016, 09:12 AM
Hi Rob,

If reports are not recognized, please check the CSPROJ|VBPROJ file and if the reports' files are included on build. Also check if the project targets .NET 4+ Full profile, not a Web Site project (it is recommended to have reports in a separate ClassLibrary project).

In order to provide you more accurate suggestions, please open a support ticket and send us the problematic project in a ZIP file.

Regards,
Stef
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Jorden
Top achievements
Rank 1
Answers by
Stef
Telerik team
Jorden
Top achievements
Rank 1
Share this question
or