General information
Category:
Reports & Report designer
Environment versions
Network:
Windows 2000 Server
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only