SubReportTwoColBalanced.mdb |
Post Reply |
Author | |
A.D. Tejpal
Microsoft MVP Joined: 30 Jun 2008 Status: Offline Points: 192 |
Post Options
Thanks(0)
Posted: 06 Jul 2008 at 10:50pm |
The sample db demonstrates balanced display of two columned subreport, despite adoption of "Down And Then Across" (D&A) layout. Normally, "Across And Then Down" (A&D) layout is more convenient for getting balanced columns. However, in such an arrangement, there can be awkward blank spaces in one column if the contents of adjacent one overflow into multiple rows. This can be remedied by adopting D&A layout. Direct adoption of D&A layout in a subreport does not work as the first column itself continues to expand when CanGrow property of the container control is set to "Yes". Remedy lies in setting CanGrow property of the subreport control to "No" and manipulating its height at run time. This is done by two stage opening. In stage 1, subreport alone is opened and required heights are stored in an array. These values are then used for regular opening of main report in stage 2.
|
|
Sponsored Links | Want a good read? Try The Summer of His Life (available on Amazon!) |
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |