RE:Microsoft Chart Control 6.0
**** ----------------------------------------------------------------------
**** -------------- GRAFICA-------------------------------------------
**** -----------------------------------------------------------------------
SELECT mygraph1
* parm1 - "AUTOGRAPH" && requerido
nChartType = 3 && * parm2 - tipo de chart (number)
nChartSubType = 1 && * parm3 - subtipo de chart (number)
cTitle = " " && * parm4 - titulo (si no esta vacio)
lSeriesByRow = .F. && * parm5 - series by fila (.T.), por columna (.F.)
lAddLegend = .T. && * parm6 - leyenda (.T.)
lUseAutoformat = .T. && * parm7 - usar autoformat (.F.)
cOutFile = "c:\test\mygraph.dbf" && * parm8 - namedel DBF para la grafica
cModGen = .T. && * parm9 - no abrir la grafica cuando termine
* parm10 - show nulls
DO (_GENGRAPH) WITH "AUTOGRAPH", nChartType, nChartSubType, cTitle, lSeriesByRow,lAddLegend,lUseAutoformat,cOutFile,cModGen
**** ----------------------------------------------------------------------
**** ----------AGREGAR TABLA DE DATOS-------------------
**** ----------------------------------------------------------------------
SELECT mygraph
cGField = "olegraph" && General field
oGform =CreateObject("form")
oGform.ADDOBJECT("ole1","oleboundcontrol")
oGraphRef = m.oGform.ole1
oGraphRef.ControlSource = m.cGField
oGraphRef.HasDataTable = .T.
oGraphRef.DataTable.HasBorderOutline = .T.
oGraphRef.DataTable.Font.Name = "arial"
oGraphRef.DataTable.Font.Size = 10
oGraphRef.DataTable.Font.Italic = .T.
oGraphRef.ChartTitle.Caption = "COMPARISON"
oGraphRef.refresh
** BROWSE
SELECT mygraph0
REPLACE olechart WITH mygraph.olegraph