I've done this the dirty way with MSChart. I used its EditCopy() method to copy the graph to the clipboard then using Automation I pasted the graph into a word document and printed from there.
Maybe not the most elegant solution but quick and easy to implement.
HTH
Caroline
>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
Caroline