Information générale
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement