>Hi, Cetin!
>I've tried to use your advice how to change type of graph in report
>changing graphtype and graphsubtype constants by it was ignored.
>Could you give me a hint where my problem can be.
>
>Thanks in advance.
>
>Here is an example from my program
>
>**************************
>Tab = CHR(9)
>Crlf = CHR(13) + CHR(10)
>pcData = ""
>
>SELECT Scac,weight from myTable into table da_g group by scac
>
> SCAN
> pcData = pcData + Tab + Scac
> ENDSCAN
> pcData = pcData + Crlf + 'SCAC'
> SCAN
> pcData = pcData + Tab + STR(Weight)
> ENDSCAN
>graphType = 5
>graphsubType = 3
>
>graphType = 5
>graphsubType = 5
>
>SELECT DA_CHART
>
>CREA CURSOR g_temp (ch_name C(50),olegraph g)
>APPEND BLANK
>APPEND GENERAL OleGraph DATA pcData CLASS "MSGraph.Chart.8"
>
>REPORT FORM CHARTS preview
Hi Irina,
As I could understand it was 9 months ago when I hadn't MSGraph8 yet. From there on code calls another routine that adds the chart to a form and calls autoformat(Type, Subtype). But unfortunately, things have changed with MSGraph8. Autoformat is supported only for first 4 types (subtypes ignored). For a far more detailed, completely working code, pls revise the thread titled "MSGraph riddle" - dated 17 or 18 Nov,1998. I hope that will help.
Cetin