C1Report Designer question: Sub Report Moves Adjacent Fields

Posted by: sbaramore on 15 November 2018, 5:28 am EST

    • Post Options:
    • Link

    Posted 15 November 2018, 5:28 am EST - Updated 3 October 2022, 4:56 pm EST

    I am working with the C1Report Designer .Net version: 2.5.20061.195 building a form for an end-user. I need to add sub reports to the form that have the ability to grow if necessary. The form consists of 4 columns: Quantity, Description, Unit Price and Amount. The sub reports that I have created will go into the Description column.

    The problem that I am having is that the fields in the columns Unit Price and Amount are being moved to the subsequent pages (technically the Quantity column is being moved as well but I’m fine with that). I am trying to figure out a way that will keep the fields in those columns to remain in the same position while the sub reports in the Description column will grow if necessary. I’ve been experimenting with the properties in the Layout section ForcePageBreak, but I am unsure what else to change in order for the data in the other columns to stay in place. I also found that when the CanGrow property is set to false, the Unit Price and the Amount columns appear on the first page. Any help that can be provided would be greatly appreciated. If any additional information is needed, please let me know.

    I found this article, but I am having trouble making sense of it as my fields in the Unit Price and Amount column are not directly below my sub report:

    http://helpcentral.componentone.com/nethelp/c1report/creatingcangrowcansh.htmlhttp://helpcentral.componentone.com/nethelp/c1report/C1.C1Report.4~C1.C1Report.Field~CanGrow.html

    Edit Mode in the C1Report Designer enter image description here

    Page 1 enter image description here

    Page 2 enter image description here

  • Posted 15 November 2018, 7:05 pm EST - Updated 3 October 2022, 4:56 pm EST

    Hi,

    could you post the report file? It is hard to say whats happening without seeing the file. So, you want to sync the labels in the column “Unit price” with the subreports in column “Description”?

    Maybe it helps to add horizontal lines before each subreport, which span the whole page width.

    I added purple lines to your screenshot to show what I mean:

    You use a rather old version of C1Report. The support guys will probably tell you to upgrade to the most recent version (where C1Report became obsolete and C1FlexReport is the replacement…).

    Best regards

    Wolfgang

  • Posted 15 November 2018, 7:34 pm EST

    Hello,

    As you mentioned, CanGrow property helped to obtain Unit Price and Amount on the first page for you. Thus, does it not work as a solution for you? Please inform in case I am missing on something.

    I would like to inform you that your version of C1Report is quite old. The latest version is 4.0.20183.338. I suggest you to download these builds from here and use the latest designer:

    http://prerelease.componentone.com/dotnet40/c1winforms/2018-t3/C1WinForms.4_4.0.20183.338.zip

    Further, please note that C1Report is now obsolete:

    https://www.grapecity.com/en/forums/winforms-edition/c1report-is-now-obsolete-t

    I suggest you to use C1FlexReport which is our flagship reporting tool. You can learn more about the same from here:

    https://www.grapecity.com/en/flexreport/

    Kindly share your report with dummy data so that I can assist you further.

    Also, thanks Wolfgang.

    Best Regards,

    Esha

Need extra support?

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

Learn More

Forum Channels