delphi - Adjusting Subreport object's height in run time -
hi using fastreports4 delphi 7 , have produce report form handles containers , stored goods. while building report found myself facing following issue: in main report have placed groupheader-band bound containers datasource. in placed 1 memoview (called containerinfmemo) bring container's info, 1 subreport bring stored commodities info stored relative container , memoview (called grossweightmemo) in calculate gross weight of container goods.
inside subreport placed masterband bound commodities datasource, in placed memoview (called commoditiesmemo) prints commodities details.
both groupheader , masterdata bands have stretched property set "true". memoviews have stretchmode property set "smmaxheight" while shiftmode property set "smwhenoverlapped". subreport's property printonparent set "true" while shiftmode property set "smwhenoverlapped".
now, long commoditiesmemo's height greater height of other 2 memoview heights subreport stretching claim commoditiesmemo maximum height , groupheader-band follows adjusting both own height object's height. works should. however in case containerinfmemo's height greater 1 of other memoview heights deal following paradox:
subreport stretching as commoditiesmemo height demands while
groupheader-band stretching more since containerinfmemo demands more space commoditiesmemo.
thus final result have gaps inside report between rows/records of containers-commodities details.to more specific providing following images in order provide image of how report behaves , how should behave
so asking if there way adjust subreports or memoview's height on run-time. have tried using scripts on "onbeforeprint" event of subreport , memoview but, unfortunately, engine takes in consideration height relative object has in design-time , not in run-time. there way face problem ?
thank in advance
try disable bottom line tfrxmemoview in tfrxsubreport
Comments
Post a Comment