Autosize Table

Posted by: rrpaul on 14 September 2017, 10:09 am EST

  • Posted 14 September 2017, 10:09 am EST

    [activereports_archive]Hi:

    Can a table be configured to auto-size (grow and shrink) so that the columns adjust based on its text?

    Thanks,

    Rich[/activereports_archive]

  • Posted 14 September 2017, 10:09 am EST

    [activereports_archive]Hello Rich,

    Do you mean auto-size for table column width? It cannot be changed at runtime and specified in expression. The valid value must be between 0in and 160in or the equivalent in cm, mm, pt or pc units.

    http://arhelp.grapecity.com/webhelp/AR10/GrapeCity.ActiveReports.v10~GrapeCity.ActiveReports.PageReportModel.ReportItem~Width.html

    The only solution is to modify the font size instead of column width using ShrinkToFit property of textbox.

    Also this link may be useful:

    http://arhelp.grapecity.com/groups/topic/dynamic-column-widths/

    Thanks,

    Anna[/activereports_archive]

  • Posted 14 September 2017, 10:09 am EST

    [activereports_archive]Hi,

    In addition to that, as of now, we could not find any direct way to auto-resize the columns of Table based on its text. However, we are in discussion with the development team for the same and will get back to you as soon as there is any response from them. Tracking ID: 203068.

    Regards,

    Arpit Jain[/activereports_archive]

  • Posted 14 September 2017, 10:09 am EST

    [activereports_archive]Hi Rich,

    Could you please share which type of report are you using: Page or RDL?

    According to your previous issues, you might be using RDL. So, in case of RDL reports, you can use CanGrow property of TextBox of the Table to accomplish the AutoSize feature. It enables the TextBox to increase its size to accommodate the contents completely. Please set the CanGrow property of the desired textbox to True.

    Moreover, in case it doesn’t fulfill your requirements then please explain your requirements and use case scenario a bit further?

    Also share how you are expecting AutoSize feature to work in Table.

    Regards,

    Arpit Jain[/activereports_archive]

Need extra support?

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

Learn More

Forum Channels