How to use the C1 Flex Report Designer when Data Source is list of class object

Posted by: msloan on 8 November 2018, 2:38 am EST

    • Post Options:
    • Link

    Posted 8 November 2018, 2:38 am EST

    Hi,

    I wish to create a report where the Data Source Record Set is a list of class objects rather than a table in a database or the output of an SQL Query. How do I specify the class as a data source to use in the Report Designer? The class itself contains objects of other classes and I’ll need access to those classes’s Properties in the Designer as well.

    Regards,

    Mark

  • Posted 11 November 2018, 10:08 pm EST

    Hi Mark,

    In order to accomplish your requirement, you can implement IC1FlexReportExternalRecordset interface in your custom class and return the data to data source.

    Please refer the link below for more information on this:

    http://help.grapecity.com/componentone/NetHelp/FlexReportWPF/webframe.html#C1.WPF.FlexReport.4~C1.WPF.FlexReport.IC1FlexReportExternalRecordset.html

    You can find a similar implementation in the product sample for WinForms at:

    …\Documents\ComponentOne Samples\WinForms\C1FlexReport\CS\ExternalDataSource

    This sample demonstrates how to implement IC1FlexReportRecordset and

    IC1FlexReportExternalRecordset interfaces which allow an assembly to be used as

    a custom record source for C1FlexReport.

    Thanks,

    Pragati

Need extra support?

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

Learn More

Forum Channels