Home General

Table grid with height from query

Hello,

I have a report with a TableGrid. The query with the data contains also a column that should be used to set the height of the rows in the grid. The height remains constant for all the records. Is there a way to link the column to the height field of the grid or is there a simple way to do it

Regards
Andreas

Comments

  • Hi Andreas,

    Try implementing band BeforePrint event like this

    myTableGrid.Rows[0].Height := myPipeline['FieldName'];
    myReport.Detail.Height := := myPipeline['FieldName'];

    notes:

    1. Report.Units defines the unit of measure
    2. Optionally use spHeight property to set the value in screen pixels


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • Hello Nard,

    this works exactly as I need it.

    Thank you very much
    Andreas
Sign In or Register to comment.