Flexreport new page weirdness

Posted by: kbj on 29 September 2020, 8:46 am EST

    • Post Options:
    • Link

    Posted 29 September 2020, 8:46 am EST

    While creating a simple report with a field that contains a long string, I defined the AutoHeight property to Grow and SplitHorizBehavior to SplitIfNeeded.

    The report will start a new page depending on the width of the field even if the following record would fit on the page.

    I made no changes to the 2 examples other than changing the width of the 2nd field.

  • Posted 29 September 2020, 8:56 am EST - Updated 3 October 2022, 2:35 pm EST

    Examples:

  • Posted 29 September 2020, 9:02 am EST

    It may be that the report formatter requires the entire 2nd record to fit on the page ignoring the SplitVertBehavior is set SplitIfNeeded.

  • Posted 30 September 2020, 9:47 pm EST

    Hello,

    We are not able to replicate the issue with the attached report. Could you please either modify the attached report or provide your own stripped-down report so that we can try to reproduce the same behavior at our end and assist you further accordingly.​​

    Thanks,

    Mohit

    test.zip

  • Posted 1 October 2020, 3:22 am EST

    Reduce the description field to 5000 to see auto page feed.

    test.zip

  • Posted 2 October 2020, 2:37 am EST

    I just noticed that when you double click on a flex report in the windows file manager, the flex report designer opens up with the report that was last edited NOT the flex report file (*.flxr) that was clicked.

    That being said, the above zip file is wrong, use this one:

    test2.zip

    It also seems that if I remove a data source from a report definition file, and replace it with another file, I get:

    Error rendering report:

    Can not find the report data source [Main].

  • Posted 4 October 2020, 11:59 pm EST - Updated 3 October 2022, 2:35 pm EST

    Hello,

    Could you please check with the latest build of C1 as I am not able to replicate the above said issue.

    http://prerelease.componentone.com/hotfixes/dotnet/C1WinForms-452_4.5.20202.451.zip

    Thanks,

    Mohit

  • Posted 7 October 2020, 8:03 am EST

    How do I install this?

    Thanks,

    Kingman

  • Posted 7 October 2020, 7:08 pm EST

    Hello,

    You can install using the C1 ControlPanel which you can download from the following link:

    https://www.grapecity.com/componentone/download

    Thanks,

    Mohit

  • Posted 15 October 2020, 7:25 am EST

    You are telling me it is possible to install from a zip file from the C1 controlPanel?

    If so, how?

    Also, did you use the sample provided and reduce the description field width and NOT get a page feed after the first record?

  • Posted 15 October 2020, 11:10 pm EST - Updated 3 October 2022, 2:35 pm EST

    Hello,

    I am very sorry for the confusion. You can run the EXE and upgrade you existing build using the ComponentOneControlPanel. Please refer to the attached image.

    Also, did you use the sample provided and reduce the description field width and NOT get a page feed after the first record?

    I am really sorry, I forget to change the width of the Field. I thought you have the given the modified report with the changed width. To achieve your requirement, you can set the SplitBehavior from KeepTogether to SplitIfNeeded.

    Hope it helps.

    Thanks,

    Mohit

  • Posted 15 October 2020, 11:10 pm EST - Updated 3 October 2022, 2:35 pm EST

    Hello,

    I am very sorry for the confusion. You can run the EXE and upgrade you existing build using the ComponentOneControlPanel. Please refer to the attached image.

    Also, did you use the sample provided and reduce the description field width and NOT get a page feed after the first record?

    I am really sorry, I forget to change the width of the Field. I thought you have the given the modified report with the changed width. To achieve your requirement, you can set the SplitBehavior from KeepTogether to SplitIfNeeded.

    Hope it helps.

    Thanks,

    Mohit

  • Posted 16 October 2020, 4:08 am EST

    It doesn’t . . . In the example the field Description is set to split if needed and the report still issues a page feed after the first record. Did you actually run the example?

  • Posted 16 October 2020, 4:31 am EST

    Hello,

    Please refer to the modify report where I set the SplitBehavior of Detail section from KeepTogether to SplitIfNeeded.

    Thanks,

    Mohit

    test2.zip

  • Posted 16 October 2020, 5:33 am EST

    Mohit,

    That is the fix! Not only do the fields have to have their SplitBehavior set, but also the Detail section.

    Thanks

    Kingman

Need extra support?

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

Learn More

Forum Channels