Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using MS Graph in VFP 3.0
Message
De
30/10/1996 18:45:17
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Groupes d'usagers
Divers
Thread ID:
00011131
Message ID:
00011177
Vues:
38
>I'm trying to use MS GRAPH in my application for displaying charts. There
>is no comprehensive descripion in help and documentation. I've found only
>examples in which there's used excel ole object. I want to bypass
>intermediation of excel and use pure MS Graph's PEMs.
>Any suggestions?

Create two things: a form (or some other object) with an OLE container. Next, create a work table with one record and one general field. Browse the table and use "insert object" to insert a 'dummy' graph into the general field. Make the graph the same type as you are interested in, with 'dummy' data. To add your own real data, you must build a string of two parts (part one seperated from part two by CR/LF combo. The first string should start with two spaces, then a tab, then a data label, then a tab, etc. until all data labels have been written. Next, the CR/LF. Next, a tab, then data (as strings) in an order corresponding with the lables, each seperated by a tab. Then use an APPEND GENERAL DATA CLASS "MSgraph.Chart.5" command. Refresh and you're done. Reference: Liskin's VFP Expert Solutions, p. 1086. Hope this helps. Note: TAB is chr(9), CR is chr(13), LF chr(10).
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform