>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only