Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to print graph with CLASS 'msgraph.chart'
Message
 
À
25/06/2004 01:03:10
Hee Lim Wang
Fantasy Software Enterprise
Malaisie
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00917096
Message ID:
00917127
Vues:
11
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform