Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grantt Graph in VFP
Message
De
19/06/2000 13:38:29
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Divers
Thread ID:
00381772
Message ID:
00381870
Vues:
27
If you need/want to keep it entirely within Fox you can use the report writer to generate a Gantt chart. I use the technique of having a field object on the report which stretches across the complete page and is made up of (at least) two parts (a lead of spaces, and a representation of the activity bar). For example: SPACE(nSPACECOUNT)+REPL(cBARCHR,nBARCOUNT) The values of nSPACECOUNT and mBARCOUNT are usually generated from the date values in the underlying table that holds the project information.

Two points to note about this technique:
1) Of course you must use a fixed width font (e.g Courier) for the bars, otherwise your bars will not end up where you expect them.

2) Judicious use of the "Print When" option allows you to enhance reports considerably from the "plain vanilla" that we are mostly used to. In this case you can use this feature to print different kinds of bars dependent on some condition in the data.

Warning: Using this technique starts out relatively simple - but user demands for more and more information can quickly render it unmanagable.

Hope this helps
Sam Robbins BCRTC
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform