Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grantt Graph in VFP
Message
From
19/06/2000 13:38:29
 
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
00381772
Message ID:
00381870
Views:
34
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform