Article ID: 131029
Article Last Modified on 7/1/2004
* Create the table with the embedded object:
CREATE TABLE grphaut(olegraph g)
APPEND BLANK
APPEND GENERAL olegraph CLASS "MSGraph" && Appends default MSGraph
&& Data.
* Use OLE automation to change the appearance of the chart:
frmDummy =CREATEOBJECT("form")
frmDummy.ADDOBJECT("oleGraph","OleBoundControl")
WITH frmDummy.oleGraph
.Height = 300
.Width = 500
.ControlSource = "grphaut.olegraph"
.HasTitle = .T.
.ChartTitle.Caption = "The Spanish Inquisition"
.Type=3 && Type = 3 produces a bar chart, 4 produces a line chart
ENDWITH
RELEASE frmDummy
The actual OLE automation commands depend on the type of object stored in
the General field.
129533 How to Pass Data to Microsoft Graph Programmatically
Keywords: kbhowto kbinterop kbautomation kbcode KB131029