3 replies
by wjlarue
Personally I prefer to use Crystal Reports for all my reporting needs - graphs, sub-reports, data fields embedded in text. If you can think of it - it can probably do it. Well, enough of the selling. I found two references for you that may help. Oneis from Microsoft and the other is from a newsgroup, posted many years ago. I hope they help.
Microsoft Link:
http://support.microsoft.com/support/kb/articles/Q138/7/77.asp?LN=EN-US&SD=gn&FR=0&qry=report%20graph&rnk=2&src=DHCS_MSPSS_gn_SRCH&SPR=FOX
Newsgroup Post:
Michael is right, you can use an ocx control, but that's rather complex. My
favorite method is to use the graph wizard to create the graph as an ole
embedded in a memo field. Then, I use the ms graph designer itself to tweak
the graph to my likings.
The finished graph is stored in a table called "grphtmpl" (graph templates),
which consists of "name" (char 20) and "template" (general). When you wish
to include the graph in a report, you simply create a cursor with a single
general field, append blank, and replace the general field with the graph
template that you wish to use. I have a routine that then updates the data
in the graph, and you can put it in the "title" section of a report.
That's the compressed version. I think it'd make a few pages in print. If
anyone's interested, I can put the "updgraph" function on my Web page or post
it here, or both.
Graphs are a extreme version of underdocumentation in FP & VFP. I had to
go to the knowledge base and chase down about 4 articles, including a help
file to show you how to use them in an OCX container. I'd like to save
everybody else the work.
Darrin
<<<>>>
Good luck with your project.
Jeff LaRue
Raging Technologies
by digiuser
by digiuser
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending