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
_______________________________________________
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/4a36958d.9050...@ulmcnett.com

Reply via email to