Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using MS Graph in VFP 3.0
Message
From
30/10/1996 18:45:17
 
 
To
30/10/1996 05:54:32
General information
Forum:
Visual FoxPro
Category:
User groups
Miscellaneous
Thread ID:
00011131
Message ID:
00011177
Views:
33
>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).
Previous
Reply
Map
View

Click here to load this message in the networking platform