Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Thanks for creating this site - I expect to be visiting it often as I continue to try to grow my bag of tricks!..."

Geography

Where in the world do Tek-Tips members come from?
taterday (Programmer)
30 Jul 12 19:18
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.
Helpful Member!  jrbbldr (Programmer)
30 Jul 12 20:40
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
http://www.hentzenwerke.com/catalog/autofox.htm

Good Luck,
JRB-Bldr
Helpful Member!  mplaza (Programmer)
30 Jul 12 20:48

FoxCharts is an excellent graphics library written in vfp:

http://vfpx.codeplex.com/wikipage?title=FoxCharts&...

Marco
Helpful Member!  MikeLewis (Programmer)
31 Jul 12 3:29
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 (http://www.ml-consult.co.uk/foxst-23.htm).

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

taterday (Programmer)
31 Jul 12 14:32
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.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close