* Create the component pie = CREATEOBJECT("MSGraph.Chart.8") ds = pie.Application.DataSheet ds.Cells.Clear pie.Width = 500 pie.Height = 500 ds.Cells(1,2).Value = "TITI alain" ds.Cells(2,2).Value = "11,20" ds.Cells(1,3).Value = "vient gΘrard" ds.Cells(2,3).Value = "15" ds.Cells(1,4).Value = "TOTO FABRICE" ds.Cells(2,4).Value = "17" ds.Cells(1,5).Value = "EMILE CLAUDE" ds.Cells(2,5).Value = "19" ds.Cells(1,6).Value = "BERNARD BERNARD" ds.Cells(2,6).Value = "20" ds.Cells(1,7).Value = "TUTU ALAIN" ds.Cells(2,7).Value = "22" pie.ChartType = -4102 pie.HasLegend = .T. pie.HasTitle = .F. pie.Legend.Font.Size = 8 pie.Legend.AutoScaleFont = .T. pie.ApplyDataLabels pie.SeriesCollection(1).DataLabels.AutoScaleFont = .T. pie.SeriesCollection(1).DataLabels.Font.Size = 8 pie.SeriesCollection(1).Interior.ColorIndex = 36 pie.ChartArea.Interior.ColorIndex = 2 pie.PlotArea.Width = 200 pie.PlotArea.Height = 200 tFile = "c:\pie.gif" pie.Export(tFile) && <-- Error occurs here