On Monday 15 June 2009 11:40:13 am Paul McNett wrote:
> All report properties are expressions to evaluate at runtime. This makes it
> really easy to, for instance, adjust the font size of a string object on
> the fly.
>
> For instance, I'm making a report with 12 columns, and one of the columns
> usually has length of 4 characters or less, but can be as long as 20
> characters. Allowing for 20 characters makes the column appear too wide in
> the normal case.
>
> So, instead of the fixed FontSize of 9, and a column width of 110, I set
> the column width at 75 and a dynamic FontSize. Here's the rfxml for the
> field in question:
>
> <String>
>       <expr>self.fold</expr>
>       <FontSize>(7 if len(self.fold) > 7 else 9)</FontSize>
>       <Width>75</Width>
>       <x>43</x>
>       <y>0</y>
> </String>
>
> The dynamic nature of all report properties makes it really easy to design
> for the general case but still allow for the exceptional ones.
>
> Other uses of this would be in coloring fields based on certain criteria,
> etc.
>
> Paul

That's cool!  I bet Larry will have fun with that tidbit.



-- 
John Fabiani
_______________________________________________
Post Messages to: Dabo-users@leafe.com
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/200906151358.06342.jfabi...@yolo.com

Reply via email to