Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug in Print When of detail band footer
Message
From
07/09/2006 09:41:01
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Bug in Print When of detail band footer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01151756
Message ID:
01151756
Views:
91
Hi All,

I have found a bug in the VFP 9 report writer. I am trying to conditionally print the footer for a detail band by using the Print When for the objects in the detail band footer. But, no matter what condition (based on the report data) that I use in the Print When for the objects (including the "recommended" method of using "!eof({targetalias})"), the footers are *always* suppressed.

After some testing, I discovered that there is some very squirrelly behavior going on in the detail footer processing. For example, I changed the Print When for one of the objects to call a test function that would echo to the screen the value passed to the function (!eof('targetalias') in this case.) When run, it was revealed that the function was called 23 times and that the value was True 19 times and False 4 times (4th, 7th and 21st occurences) in every case no matter how many detail records in the target alias?!

Has anyone seen this behavior before? Is there a better work-around than creating a variable BEFORE the report is run to use in the Print When condition?
Later...
/< /-/
Next
Reply
Map
View

Click here to load this message in the networking platform