How to determine row height in pixels of c1RenderTable

Posted by: jsnahil on 20 February 2022, 11:14 pm EST

  • Posted 20 February 2022, 11:14 pm EST

    Is it possible to determine the height in pixels of row in a table rendered using c1rendertable?

  • Posted 22 February 2022, 8:15 am EST

    Hi,

    You can use the CalcSize method to get the height of the RenderTable. Please refer to the documentation at https://www.grapecity.com/componentone/docs/win/online-printdocument/C1.PrintDocument.6~C1.C1Preview.RenderTable~CalcSize.html for more info.

    C1PageSettings ps = c1PrintDocument1.PageLayout.PageSettings;
    double pageWidth = ps.Width.Value - ps.LeftMargin.Value - ps.RightMargin.Value;
    SizeD sz = renderTable1.CalcSize(new Unit(pageWidth, ps.Width.Units), Unit.Auto);
    

    Regards

    Avnish

Need extra support?

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

Learn More

Forum Channels