SubReport - No report in object instance

4 posts, 0 answers
  1. Rob
    Rob avatar
    2 posts
    Member since:
    Mar 2016

    Posted 08 Sep Link to this post

    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.

  2. Stef
    Admin
    Stef avatar
    3053 posts

    Posted 09 Sep Link to this post

    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
  3. DevCraft banner
  4. Rob
    Rob avatar
    2 posts
    Member since:
    Mar 2016

    Posted 12 Sep in reply to Stef Link to this post

    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.

     

  5. Stef
    Admin
    Stef avatar
    3053 posts

    Posted 12 Sep Link to this post

    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
Back to Top