Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Graph not showing correctly on start-up
Message
 
To
30/10/2008 08:41:21
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01358319
Message ID:
01358457
Views:
23
Beth,

I have used both MSChart and MSGraph.

Here's what I do when I open a form which has an OLE control that uses MSGraph:

#DEFINE xlPie 5
#DEFINE xlDataLabelsShowNone -4142

CREATE TABLE SIZEGRAPH FREE (genAsset g)
APPEND BLANK
APPEND GENERAL genAsset CLASS "MSGraph.Chart" DATA lcGData

WITH THISFORM
.olbCurrentSize.CONTROLSOURCE = "SIZEGRAPH.genAsset"
.olbCurrentSize.HasLegend = .T.
.olbCurrentSize.Autoformat(xlPie,7)
.olbCurrentSize.ApplyDataLabels(xlDataLabelsShowNone)
ENDWITH

I always recreate my graphs when I open the form. I also wait until after I have set up the graph before I make the OLE control visible. The Autoformat line tells the control to show the chart as a pie chart.

Pauline
Previous
Reply
Map
View

Click here to load this message in the networking platform