Too much whitespace when subreport is empty

Too much whitespace when subreport is empty

Forum member · Feb 2, 2009
I've got a SubReport that for every body item groups the header and the first item, then shows the rest of the items in another nested SubReport if any left. The problem is when there is just one item to show, I still have the whitespace that is taken by the nested SubReport. I'm looking into a way of suppressing the space taken by the nested subreport when there is no item to show. This is the markup inside the body tag of the first subreport: <contentGroup y="0" id="conVerzekeringOne" width="495" height="74" x="0"> <placeholder id="plhCategorieImage" x="6" height="14" width="14" y="2"/> <recordBox dataFormat="" height="14" width="452" x="48" id="recCategorieNaam" field="CategorieNaam" fontSize="12" font="TimesBold" y="2"/> <line id="linCategorieUnderlineOne" width="2" x1="0" y1="19" y2="19" x2="495"/> <label height="14" text="Maandpremie" fontSize="9" font="TimesRoman" width="75" id="lblMaandpremie" y="21" align="right" x="341"/> <label id="lblJaarpremie" height="14" y="21" text="Jaarpremie" font="TimesRoman" fontSize="9" align="right" width="79" x="417"/> <recordBox id="recNaamVerzekeringOne" dataFormat="" height="14" x="12" y="36" field="NaamVerzekering" fontSize="9" font="TimesBoldItalic" width="141"/> <recordBox id="recMaandPremieExclusiefOne" dataFormat="" height="14" field="MaandPremieExclusief" y="36" font="TimesRoman" fontSize="9" width="80" align="right" x="337"/> <recordBox id="recJaarPremieExclusiefOne" dataFormat="" height="14" width="100" y="36" field="JaarPremieExclusief" font="TimesRoman" fontSize="9" align="right" x="397"/> <recordBox id="recOudeVerzekeringOne" dataFormat="" height="14" x="158" y="36" field="OudeVerzekering" fontSize="9" font="TimesBold" width="171"/> <line id="linVerzekeringUnderlineOne" color="gray" x1="12" y1="55" x2="280" y2="55"/> <subReport id="subPremieOnderdeelOne" groupBy="VerzekeringId" width="495" y="60" x="0"> <header id="hdrPremieOnderdeelOne" height="0"/> <body id="bdyPremieOnderdeelOne" height="14"> <recordBox dataFormat="" height="14" x="12" id="recKeyOne" field="Key" y="0" font="TimesRoman" fontSize="8" width="187"/> <recordBox dataFormat="" height="14" width="200" x="200" y="0" id="recValueOne" field="Value" font="TimesRoman" fontSize="8"/> </body> <footer id="ftrPremieOnderdeelOne" height="0"/> </subReport> </contentGroup> <subReport id="subRestVerzekeringen" groupBy="VerzekeringId" width="495" x="0" y="74"> <query id="qryRestVerzekeringen" connectionString="" dataProvider="eventDriven"/> <header id="hdrRest" height="0"/> <body id="bdyRest" splittable="true" height="58"> <contentGroup id="conVerzekeringRest" width="495" x="0" y="0" height="58"> <recordBox id="recNaamVerzekeringRest" dataFormat="" height="14" x="12" field="NaamVerzekering" fontSize="9" font="TimesBoldItalic" width="142" y="17"/> <recordBox id="recMaandPremieExclusiefRest" dataFormat="" height="14" field="MaandPremieExclusief" font="TimesRoman" fontSize="9" width="80" align="right" x="336" y="17"/> <recordBox id="recJaarPremieExclusiefRest" dataFormat="" height="14" width="100" field="JaarPremieExclusief" font="TimesRoman" fontSize="9" align="right" x="396" y="17"/> <recordBox id="recOudeVerzekeringRest" dataFormat="" height="14" x="158" field="OudeVerzekering" fontSize="9" font="TimesBold" width="170" y="17"/> <line id="linVerzekeringUnderlineRest" x1="12" x2="280" color="gray" y1="35" y2="35"/> <subReport id="subPremieOnderdeelRest" groupBy="VerzekeringId" width="495" x="0" y="44"> <header id="hdrPremieOnderdeelRest" height="0"/> <body id="bdyPremieOnderdeelRest" height="14"> <recordBox dataFormat="" height="14" id="recKeyRest" field="Key" y="0" font="TimesRoman" x="12" fontSize="8" width="185"/> <recordBox dataFormat="" height="14" width="200" x="200" y="0" id="recValueRest" field="Value" font="TimesRoman" fontSize="8"/> </body> <footer id="ftrPremieOnderdeelRest" height="0"/> </subReport> </contentGroup> </body> <footer id="ftrRest" height="0"/> </subReport>

Re: Too much whitespace when subreport is empty

Support · Feb 2, 2009
Hello, Can you please send over the dplx file and the sample code which you are using to generate the report to our [^a|mailto:support@cete.com|Support Team^] so that they can look into this issue further? Thanks, ceTe Software Support Team.