Using FlexReportDesigner / Group Headers

Posted by: c1 on 21 September 2018, 6:05 am EST

    • Post Options:
    • Link

    Posted 21 September 2018, 6:05 am EST

    Hello folks,

    i am learning to use flexreport into a project (comming from list and label) and have too problems, which i can’t solve.

    1. Using FlexReportDesigner (as a standalone application) does’nt know the structure of my datasets and i have to define SQL-Statements against the database to get structure and data. Using the Designer from visual Studio (desgin mode of a form) ‘he’ knows the structure of the dataset, but i have no data (because my programm is not running).

      How can i call the designer from my running application to design the report with real data into my dataset?

    2. I define groups with groupheaders. The headers are printed as expected but sometimes i get a pagebreak between groupheader and its data (look at the red header at the bottom of page 1). I try to change the SplitBehavior-Property of the header (set to KeepTogether) but it does’nt work. How can i realize this?

    Thanks in advance for any help.

    Niels

    FlexReport_GroupProblem.zip

  • Posted 25 September 2018, 2:53 am EST - Updated 4 October 2022, 2:11 am EST

    Hello Niels,

    1. Using C1FlexReportDesigner, you can use the “Query Builder” that helps you observe the structure based on the data source and thus, you can specify the data accordingly.



      However, DesignerApp sample at the default location “Documents\ComponentOne Samples\WinForms\C1FlexReport\CS” helps you work with the C1FlexReportDesigner via code.

      Further, you can bind a report at runtime, using the C1FlexReport instance, as shown in the basic sample that’s attached for your reference.

    2. To avoid the said issue, please set the KeepTogether property of the Group to “KeepWholeGroup”.



      This should resolve the issue for you. Let me know if you need further assistance.

    Best Regards,

    Esha

    FlexReport_DynamicBinding.zip

  • Posted 26 September 2018, 2:24 am EST

    Hello Esha,

    thanks a lot for your help.

    1. Together with the hint of your college to the c1 samples at my computer :slight_smile: this point is solved. I build a small helper DLL to provider data from my programm classes to the flexreport-designer. By the way - it seems to me, that this helper dll only works without references to other project dlls. Therefore i integrate the report helper functions to my database class.

    2. This look very good. I will try it on my reports.

    Thank you for your assistence.

    Greatings

    Niels

  • Posted 26 September 2018, 11:35 pm EST

    Hello Niels,

    Glad to know that the issues are resolved for you.

    Regards,

    Esha

Need extra support?

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

Learn More

Forum Channels