Paul,
The logic works but in my case the effect is nullified.  I realized that
this is due the band width essentially being based on the object placed top
most from the bottom of the band. What I would like it to do (don't know if
feasible), is to have the system determine if any hidden objects were placed
lower than any other shown obects in the band. If so, then shift the y pos
for all the other objects down and shrink the bandheight by the shift
amount.


I would like to print out like this...

Name   Home #
         Work #
         Cell #

Fred     707-123-5432 
         707-123-5431
         678-123-5431

John     707-123-5432 

George 707-123-5432 
         707-123-5431 

Jim 

Tom      707-123-5432 
         
         678-123-5431

But get this...

Name   Home #
         Work #
         Cell #

Fred     707-123-5432 
         707-123-5431
         678-123-5431

John     707-123-5432 



George 707-123-5432 
         707-123-5431 


Jim 



Tom      707-123-5432 
         
         678-123-5431



George 707-123-5432 
         707-123-5431 

Thanks,
Larry

> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Paul McNett
> Sent: Friday, May 22, 2009 1:54 PM
> To: Dabo Users list
> Subject: Re: [dabo-users] ReportDesigner/Writer - Hidden 
> objects andbandheight
> 
> larry wrote:
> > Paul,
> > 
> > If an object's show value evaluates to False, is there a 
> way to exclude it from the bandheight calculation, so as not 
> to reserve the space when band height's value is set to None 
> for auto calculation? 
> 
> Please try this patch and let me know if it does it for you:
> 
> {{{
> Index: reportWriter.py
> ===================================================================
> --- reportWriter.py   (revision 5231)
> +++ reportWriter.py   (working copy)
> @@ -1776,7 +1776,7 @@
>               for obj in objects:
>                       obj_y = self.getPt(obj.getProp("y"))
>                       obj_ht = obj.getProp("Height")
> -                     if obj_ht is None:
> +                     if obj_ht is None or 
> obj.getProp("Show") == False:
>                               continue
>                       # object height is fixed.
>                       obj_ht = self.getPt(obj_ht)
> 
> }}}
> 
> Paul
> _______________________________________________
> Post Messages to: [email protected]
> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
> Searchable Archives: http://leafe.com/archives/search/dabo-users
> This message: 
> http://leafe.com/archives/byMID/[email protected]
> 

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/!~!uenerkvcmdkaaqacaaaaaaaaaaaaaaaaabgaaaaaaaaaafa2fnyupuomnfpiynbeqckaaaaqaaaaycgv7fgiaeywr2eazptlkweaa...@charter.net

Reply via email to