*A sample for a form with a oleboundcontrol #DEFINE TAB CHR(9) #DEFINE CRLF CHR(13)+CHR(10) THIS.LockScreen = .T. M.CGDATA = "" for ix=1 to 2000 m.cgdata = m.cgdata+TAB+"val"+str(ix) endfor m.cgdata = m.cgdata +crlf+"Value" for ix=1 to 2000 m.cgdata = m.cgdata+TAB+str(ix) endfor wait window str(len(m.cgdata)) create cursor foo (gen1 g) append blank append general gen1 class "msgraph.chart" DATA M.CGData THIS.OleBoundControl1.ControlSource = "Gen1" THIS.OleBoundControl1.HasLegend = .t. *THIS.OleBoundControl1.autoformat(14, 1) THIS.LockScreen = .F.The above code would produce a 50007 bytes m.cgdata (Do not run the example if you don't have a fast computer - lower the 2000 value first).