Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange problem with two detail bands
Message
 
À
29/03/2007 05:39:43
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MySQL
Divers
Thread ID:
01207539
Message ID:
01209647
Vues:
15
Glad you found the problem.

Just as a head's up ... I recently found a bug in VFP related to Print When and multiple detail bands. If you try to use a Print When expression in a detail band which references the parent table, it doesn't work right. What is happening behind the scenes is that at the time the Print When logic is evaluated .. the parent table is temporarily on the NEXT record so it's evaluating the wrong record. The workaround is to create a report variable that is set to that ParentTable.FieldName and use it in the Print When instead of the direct field.



>Hello Cathy
>The Target Alias in detail 1 band and detail 2 band or OK !
>Detail 1: "legende"
>Detail 2: "listwahl"
>But i found a solution:
>The detail 1 records had a print when condition from cursor listwahl!????
>if listwahl.showlegend = 1
>In all records from listwahl showlegend was 1
>I put the showlegend column into cursor legende and changed the print when to
>if legende.showlegend = 1
>Now everything works as expected!
>Nevertheless:
>Thank you for your efforts
>
>Best regards
>Albert
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform