Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it possible to insert a graph in a report?
Message
From
19/11/1998 12:58:19
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
19/11/1998 10:50:46
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00076259
Message ID:
00159374
Views:
33
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform