Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print When Issue
Message
De
11/04/2017 01:29:57
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01650029
Message ID:
01650039
Vues:
53
>Has anyone encountered this issue:
>
>1. Created a PRIVATE Variable prior to running a VFP Report
>2. This Variable is Updated in the On Entry Method of a Group Header
>3. This Group Header has a Field which displays the value of the Variable
>4, The Field has a Print When Condition based upon the value of the Variable
>
>Seems like the Print When conditions are evaluated prior to the Variable update in the On Entry Method resulting in the Print When condition for the Field not evaluating properly.
>FYI, if the Print When conditions are removed, the Variable displays correctly in the Group Header.
>
>Any help would be greatly appreciated.

Hi Marshal,

I have no good idea how to solve your problem inside the report. But it can be done outside.

Example:
SELECT;
 Cur1.*,;
 CAST(0 AS I) as iExtra;
 FROM CursorToPrint
 INTO CURSOR curHelp READWRITE

LOCATE
lvGroup = FieldToGrpoup
SCAN
 IF ! lvGroup=FieldToGrpoup THEN
  *Group changed
  *alter field iExtra
 ENDIF
ENDSCAN

REPORT FORM ....
This give you control outside the wonders of report engine.

HTH
Lutz
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform