Just a suggestion here. You could use MsChart and download Obj2Bmp (made by George Tasker). That could make your job easier in case you lose too much time searching for a solution with MsGraph.
>There is no print graph in my graph output
>how to print it ????
>my code is...
>
>#define crlf CHR(13)+CHR(10)
>#DEFINE tab CHR(9)
>
>CREATE CURSOR mygraph (olegraph G)
>cgdata=''+tab+'Top 10 Visit Reason From Date '+DTOC(sdate)+' To '+DTOC(edate)+crlf
>SELECT temp
>GO TOP
>SCAN
> cgdata=cgdata+reason+tab+ALLTRIM(STR(count))+crlf
>ENDSCAN
>
>SELECT mygraph
>APPEND BLANK
>APPEND GENERAL olegraph CLASS 'msgraph.chart' DATA m.cgdata
>MODIFY GENERAL olegraph nomodify
*******************************************************
Save a tree, eat a beaver.
Denis Chassé