Hi,
In some of my reports have something like this:
Some nice wine name
its vintage etc etc
Some longish notes field for this wine, but this notes field is
optional. - THIS.vintage.notes SQLAlchemy column
The notes field should only be there if there is text, in other words if
there is no text there should be no space between this wine and the next
one.
In ReportManager which I use up to now I could have multiple detail
sections/element and define to "shrink" the section which has no data.
I had a go at using sub-report for this, but I still end up with a blank
line if there are no notes.
The sub-report is this:
<report>
<font name="body" size="8" typeface="Arial" />
<import alias="rc" path="twcbsrc.reports.repconstants" />
<import alias="ru" path="twcbsrc.reports.rutils" />
<import alias="gi" path="twcbsrc.reports.rutils.getRelInfo" />
<layout bottommargin="0" leftmargin="0" pagesize="A4" rightmargin="0"
topmargin="0">
<style bgcolor="#FFFFFF" color="#000000" font="body" />
<detail>
<box height="12" />
<field expr="THIS.notes" stretch="true">
<box height="0" width="445" x="20" />
</field>
</detail>
</layout>
</report>
Any other trick one can use?
Werner
|