Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bug in Print When of detail band footer
Message
De
07/09/2006 09:41:01
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Bug in Print When of detail band footer
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01151756
Message ID:
01151756
Vues:
92
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...
/< /-/
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform