Section report with object data source

Posted by: skovalen on 29 June 2022, 7:08 am EST

    • Post Options:
    • Link

    Posted 29 June 2022, 7:08 am EST

    Hi. I am trying to create the section report in my .NET Core 6.0 (C#) project. I need to use an object data source, I’d like to bind the collection of objects retrieved from Entity Framework to my section report. Is that supported? If yes, could I please have a piece of code sample? Many thanks in advance.

  • Posted 29 June 2022, 5:54 pm EST

    Hi Sergey,

    ,

    >> I’d like to bind the collection of objects retrieved from Entity Framework to my section report. Is that supported?

    Yes, You can bind your report to a collection of objects retrieved from Entity Framework. Please refer to the following page of our documentation:

    https://www.grapecity.com/activereportsnet/docs/latest/online/bind-reports-to-a-datasource.html

    In the above page you can see we are binding an Enumerator to the report similarly you can bind other object types like List or Array.

    Based on the above approach I have created a sample application and shared it along with. Instead of using Record class in the sample you can use any other object class that you are retrieving from the Entity Framework.

  • Posted 30 June 2022, 12:27 am EST

    Hi Akshay, thank you very much for your prompt response. Would you please be so kind to clarify the sentence “I have created a sample application and shared it along with”? I mean could you provide me a link where I can download the source code of sample application you created? Thank you again for your help.

  • Posted 30 June 2022, 3:20 pm EST

    Hi Sergey,

    It seems that the sample didn’t go through before. I have attached the sample application again.

    ObjectDataSourceSectionReport.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels