Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

graph VFP 9 pie chart 3

Status
Not open for further replies.

taterday

Programmer
Jan 28, 2009
183
US
I need to create a pie chart, line graph, graph design of data, etc for the user from his data. I can do this in excel but he wants me to automate this within the VFP app. Can someone steer me to a good book to buy on creating graphs? I am a total beginner on this. Are there a third party object, etc?

Thank you.
 
Have you tried doing this in Excel while recording the operation as a Macro?

Then you can examine the code that 'belongs' to the Macro.

Yes, it is VBA code, but that can then be converted to VFP Excel automation code. Typically this is relatively easy to do.

As for a good book,
Microsoft Office Automation with Visual FoxPro

Good Luck,
JRB-Bldr
 
I agree with Marco re FoxCharts. Or, if you want something simpler, you might prefer my own SimpleChart, which is essentially a wrapper for the Microsoft MSChart control (
Both these are options are faster than Excel automation, and don't require Excel to be installed. On the other hand, the Excel option will probably give you more features.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips, training, consultancy
 
I downloaded the FoxCharts. I added the gdiplusx as a class. Are there any don't do, do's that I should look out far?

Thank all of you for your help.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top