Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HOW TO UPDATE A CHART
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00019188
Message ID:
00019227
Vues:
52
>>>I have created a chart with MSGRAPH and placed it on my report form. It has special font and alignment changes in it. In the MS Knowledge Base I only find info on how to creat a new chart programatically. This does not allow for special formating changes. I am looking for the code to update my chart based on the following:
>>>
>>>DBF is statb.dbf
>>>Fields are : date, price
>>>
>>>Thank in advance.
>>Have you tried ole automation? Or a 3rd party ocx. Either would work, the first more complicated, the second more expensive.
>
>
>Using the MS OLE automation example, it just creates a new graph programatically. This destroys the colors and fonts I have used. I can't beleive we are given MSGraph, if you can't control much of it.

Believe it. You can check out the extended map for MS Graph at the
www.microsoft.com/oledev/oleauto site and look in part 2 has some references. Also look for Mapping MS Graph 5.0 on the MSDN CDROM library.
It has the full map there with some documentation and samples. Also if you have MS Access 95 or Excel 95 use the object browser to look at a file called gren50.olb in the windows\msapps\msgraph subdirectory. It has all the properties etc. No guarantee you can set these.

For example, you can't send data to MS Graph with OLE automation. The VFP gengraph must do some api calls to do this. In fact the VBA example uses a send key with cut and paste using the clipboard as an intermediary for the data. (is this 1992 or what)

Moral of the story is buy a third party ocx package for graphing if you really need graphing as a part of your app.
Todd Burstain, MD
infinitydoc@delphi.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform