Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to print graph with CLASS 'msgraph.chart'
Message
 
To
25/06/2004 01:03:10
Hee Lim Wang
Fantasy Software Enterprise
Malaysia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00917096
Message ID:
00917127
Views:
12
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
Previous
Reply
Map
View

Click here to load this message in the networking platform