Band Height

Hello
Group ,

I am facing the following problem .

<span style='color:purple'> Method adopted : </span>
Step 1) I format the report programatically i.e create the bands and create
memo fields on them.
Step 2 ) Then prepare report
Step 3 ) Show Report.

<span style='color:purple'> Problem :</span>
Each record has different number of fields. Say one record has 20 fields
another 10 fields.
Now for a record having less number of fields..lot space would be wasted .
So added code in OnBeginBand . To adjust the height of the band.
<span style='color:red'>Band.dy := Band.dy - HeightReduced ; This works</span>
But before I do that ..there are some components whose top I need to adjust
by same amount .
<span style='color:red'>i.e Memo1.Y := Memo1.Y - HeightReduced; Doesnot work</span>
I also tried using the SetBounds method. But doesn't work.

<span style='color:purple'> Question :</span>
1) So does any one have any clue why this could be happening ?
2) is it good idea to adjust band height, and memo field top in Onbeginband ?

it will be of great help if could give me suggestions to overcome this problem.
TIA and Regards
Amar

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.