Auto-Expand other controls based on Parent height

Auto-Expand other controls based on Parent height

Forum member · Aug 7, 2007
In my report I use vertical lines as a colomn delimiter. Problem: If property "Expandable" for RecordBox = 1, then RecordBox (column) changes height, but vertical lines on sides of this RecordBox do not change the height. Does anybody know how can I automatically adjust the height of the line from RecordBox height? Maybe "Content Group" can solve this problem?

Re: Auto-Expand other controls based on Parent height

Support · Aug 7, 2007
Hello, You can change the Height of the line by changing the Y2 coordinate of the line from the code. You can retrieve the height of the RecordBox and also its Y coordinate and based on those values reset the Y2 coordinate for the line. RecordBox box = (RecordBox)report.GetReportElementById("RecordBox1"); float temp = box.Height; Thanks, ceTe Software Support Team

Re: Auto-Expand other controls based on Parent height

Forum member · Aug 7, 2007
How can I change the height for every printed record? Any event? How to handle this event?

Re: Auto-Expand other controls based on Parent height

Support · Aug 7, 2007
Hello, It can be done using the onLaidOut event an you will have to write two events, one for the Line and one for the RecordBox and the event for Line has to be fired first. However it will get little complicated. If the Line element starts before the RecordBox and ends after the RecordBox then the Line will expand vertically based as the RecordBox expands. Thanks, ceTe Software Support Team

Re: Auto-Expand other controls based on Parent height

Forum member · Aug 7, 2007
Thank you, I'll try to use this rule.