I looked at the VI you provided and was able to correct the problem. Since the Method Chart Axes
has 3 options of what to return, the return type has to be a variant. I just clicked on your
automation refnum above the Convert To G function and selected Graph.Axis (Microsoft Graph 8.0 ->
Axis). That is the desired return type for the xlValue selection. The Property control wired to
the Convert then showed the full range of properties.
-Michael
--
Michael Munroe Mailto:mmunroe@abcdefirm.com
A Better Complete Development Engineering Firm
San Mateo, CA 94403 http://www.abcdefirm.com
Get shirts at http://www.stitchofclass.com
Get Clarity at http://www.symmcorp.com/mmunroe
Matthieu Gaillet wrote:
> Hello,
> This one was submitted to Ni guys but if you've any idea...
>
> I'm currently writing an app which should display a nice graph (chart) on
> its front panel. I choose to use MSGraph8 ActiveX from Microsoft, which is
> furnished with the Office suite.
>
> To do this, I've placed a container on my front panel, and in the window
> 'select activex object', I'm going to the 'Create Object' item in the
> droplist and choose "Graphique MS Graph 97" (in french).
>
> It works quite well, but :
>
> 1) It seems creating this document launches MSGraph8, as I see in the task
> list when ctrl-alt-deleting; and that this Msgraph DON'T CLOSE when closing
> the VI !! In other words, after some time, the VI hangs. I need you help
> please ! How do I close this Msgraph ? I hope it's possible.
>
> 2) Using the properties & Method, I manipulate this object. Some Properties
> return an object, which I use to define properties of this new object, ok ?
> The problem is that some _Methods_ that should return an object refnum
> returns a variant ! I tried to use the "To G data" function, but it can't
> help. What should I do to convert this variant to an object refnum ?
>
> I send you a copy of my VI, with some comments inside it. Thanks for your
> help.
>
> PS/ I'm french speaking if you want.
>
> --
> Matthieu Gaillet MGaillet.ccrm@euronet.be
> Technicien R&D
>
> C.C.R.M
> Rue des Belles-Pierres 5
> 1421 Ophain
> http://users.skynet.be/ccrm
>
> Name: Occupation - D�pouillement.zip
> Occupation - D�pouillement.zip Type: Zip Compressed Data (application/x-zip-compressed)
> Encoding: x-uuencode