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!

A good charting tool? 1

Status
Not open for further replies.

RoadRunnerOz

Programmer
Aug 22, 2000
128
AU
Anybody out there have any experience in creating and printing charts? My boss wants multiple charts/ different types printed on one page. Is this something that VFP can do natively or would a third party product be better/ easier?
I'm thinking... put a chart/charts in a general field(s) then print in a report.

TIA
Michael Ouellette
mouellette@globalfreeway.com.au
 
Hello.

Delphi has an .OCX. It is very good tool. It can print and display the charts in different formats.

BUT: I don't know if is redistributable nor free. Check the licence.

Maybe a guru helps us with the necessary info?

Hope this helps.
Grigore Dolghin
 
Great but I don't have Delphi. Can I download the OCX?

Michael Ouellette
mouellette@globalfreeway.com.au
 
Hi!

You can use MS Graph Chart control. It is completely supported by Microsoft with all help and ability to store chart into the general field and use in reports. I did not found a way to use Delphi's OCX (Tee Chart control) in the VFP reports.

You can use it by following ways:

Put an activeX control on the form and use control.object.<...> to access an objects tree of chart. You can build chart in run-time at will using data chart and design chart properties.

Make a table or cursor with general field, use append general ... class 'msGraph.chart'. Than you can open it, doble click on it and edit chart as you want. You can provide data to general field to create chart as provided in some MS samples (I have no link here now ;-( ). You can display chart on teh for from general field using OLEBoundControl bount to generalf field, users will be able to edit it! Finally, you can alter MS Graph object in general field programmitically using OLEBoundControl.Object reference.

You can find programmer help on all objects of chart control by following way:
put activex on some form and select MS Graph ... Chart control. Than press F1 in editing mode. In Programmer Information chapter you can find all you need.





Vlad Grynchyshyn
vgryn@softserve.lviv.ua
The professional level of programmer could be determined by level of stupidity of his/her bugs
 
I'll try Vlad's ideas again...

I just get GPF errors everytime I run msgraph no matter which PC I use... Such is life...
Michael Ouellette
mouellette@globalfreeway.com.au
 
How you run it and what you use when you get GPF? I have no problems woith that. However, I installed office 2000, so my msgraph is from there. Anyway, I don't beleive it is so bad, I use it since old good days of FPW2.6.

Vlad Grynchyshyn
vgryn@softserve.lviv.ua
The professional level of programmer could be determined by level of stupidity of his/her bugs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top