Line space

Posted by: rafael.mercado on 21 December 2018, 12:25 pm EST

    • Post Options:
    • Link

    Posted 21 December 2018, 12:25 pm EST

    Hi C1,

    I upgraded some old project to use the flexReport library, I followed the instructions in the guide but for the pdf reports I noticed that the line space isn’t the same:

    Left: FlexReport | Rigth: C1Report

    https://imgur.com/a/NcYnHr9

    Is there any way to add a line space?

  • Posted 24 December 2018, 3:29 am EST - Updated 4 October 2022, 1:44 am EST

    Hello,

    Migrating from C1Report to FlexReport does not change the section height in general.

    Assuming that the field values in the report are being picked up from a data source at your end, the extra space between the end of the Detail section and the fields in the section can be increased to generate line spaces. In simple words, please increase the height of the detail section by setting the Height property of the Detail section.

    If this does not help, kindly share your reports. This will help me assist you further.

    Best Regards,

    Esha

  • Posted 26 December 2018, 7:51 pm EST

    Hi,

    Thanks for the help, I was able to add more space by editing the detail height in the report definition xml.

    I’m having some issues with some excel reports using the same xml definition, when using the xmlFilter object the excel file is generating more columns than the previous dll (see image link).

    https://imgur.com/a/hYPrJq5

  • Posted 27 December 2018, 12:52 am EST - Updated 4 October 2022, 1:44 am EST

    Hi,

    The extra excel column comes in the excel export because of the gap between TextFields at design time. This gap is covered in the excel export using these extra columns.

    To avoid these, you can reduce the space between fields (and between field and margins) such that they are placed next to each other, with no gap in between.

    Regards,

    Esha

  • Posted 27 December 2018, 9:12 am EST

    Thanks Esha,

    I wonder if there is a way to remove those columns via c# code?

  • Posted 28 December 2018, 1:02 am EST

    Hi,

    This cannot be directly done in code for the specific export filter. You can only set the fields’ related Left property such that consequent fields have no gap in between.

    You can set the left property in code as follows:

    c1FlexReport1.Fields["Field1"].Left = 0;
    
    

    Regards,

    Esha

Need extra support?

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

Learn More

Forum Channels