Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Graph8: the chart is empty on NT !!
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00247542
Message ID:
00248276
Views:
17
This is the code that works for me:

CREATE CURSOR TOGRAPH (GRAPH G)
SELECT TOGRAPH
APPEND BLANK
APPEND GENERAL GRAPH CLASS "MsGraph.Chart.8"

CREATE CURSOR runitems (xaxis c(2), yaxis c(10))
INSERT INTO runitems (xaxis, yaxis) values ('1', '100.00')
INSERT INTO runitems (xaxis, yaxis) values ('1', '101.50')
INSERT INTO runitems (xaxis, yaxis) values ('1', '102.50')

WAIT WINDOW 'Generating Graph...' NOWAIT
g_graphdata = "" + CHR(9) + "Set 1" + CHR(13)

GO TOP IN runitems
SELECT runitems
SCAN
g_graphdata = g_graphdata + runitems.xaxis + CHR(9) + runitems.yaxis + CHR(13)
ENDSCAN
APPEND GENERAL TOGRAPH.GRAPH DATA g_graphdata
WAIT CLEAR


>I'm binding it to a general field wih APPEND .... "MsGrpah.Chart.8"
>I'm working on new record (not refreshing), and the same problem happen with Graph5.
>On the PCs with error we've already installed Office97.
>
>Thanks for your suggestion.
>
>PS: I'm going in vacation for 3 weeks, but I'll be in my office 1 morning each week so to any other suggestion I'll reply with a delay.
>
>Bye
>
>>How are you populating the data. Using the object properties or are you
>>binding it to a general field and refreshing the data. Graph8 has a bug
>>that will not refresh graph data from a general field unless a full installation of MS Office 97 is available. Graph5 would refresh regardless.
>>
>>
Previous
Reply
Map
View

Click here to load this message in the networking platform