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
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