Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How would I print a Gantt chart
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
How would I print a Gantt chart
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01015904
Message ID:
01015904
Views:
79
I have built up a Gantt chart (out of basic shape objects) that represents a
schedule... and now I want to print it :)

What would be the best approach to making this happen?

Here are some of the key aspects that make this task rather difficult:
- The Gantt chart has multiple groups of bars per row
(each group represents a different type of event)
- Some of the groups overlap and some are drown with an offset
- Groups differ from each other either by color or texture.
- Each bar represents a particular event with start datetime and end
datetime

So far, the only thing that I can imagine as being realistically doable is
taking a screen shot of the actual Gantt chart form (which looks exactly as
what I want to be printed) and attach it to a report with an image
control...

I have also looked at Crystal's new feature - Gantt Chart :) Unfortunately,
it doesn't seem to support groups of bars per row i.e. if I have several
events scheduled for the same client, it would produce that many rows with a
single bar representing a single event. Also, controlling color, shape and
size of the bars in each group is close to impossible...

Could anyone suggest a better way? I am in VFP8.. is there something that
can be used in VFP9 perhaps?

Here is a sample data set that is used to produce it:

ClientID Type StartDateTime EndDateTime
1 C 05/01/05 8:00 05/01/05 9:45
1 C 05/01/05 16:00 05/01/05 17:15
1 U 05/01/05 17:00 05/01/05 18:00
1 A 05/01/05 8:00 05/01/05 18:00

This basically shows that client 1 has two confirmed(C) visits from 8 to
9:45 and from 16:00 to 17:15, there is also one unconfirmed(U) visit
somewhere between 17:00 and 18:00 and clients availability(A) for this day
is from 8am to 6pm.
Next
Reply
Map
View

Click here to load this message in the networking platform