Activex problems 
Author Message
 Activex problems

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
--

A Better Complete Development Engineering Firm
San Mateo, CA  94403   http://www.*-*-*.com/
Get shirts  at http://www.*-*-*.com/
Get Clarity at http://www.*-*-*.com/

Quote:

> 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.

> --

> Technicien R&D

> C.C.R.M
> Rue des Belles-Pierres 5
> 1421 Ophain
> http://www.*-*-*.com/

>                                      Name: Occupation - Dpouillement.zip
>    Occupation - Dpouillement.zip    Type: Zip Compressed Data (application/x-zip-compressed)
>                                  Encoding: x-uuencode



Mon, 02 Dec 2002 03:00:00 GMT  
 Activex problems
To get objects refnum to be connected to the conert to G data do following:
1) Create a new ActiveX refnum control on the front pannel
2) Right click, and go to browse and search for MS Graph Object Library
3) Once you pick it, selection box will be empty, so uncheck "Show Creatable
Objects only" box
4) There should be an option to select Axes object.
Why it keeps on running I have no idea since I cannot run your example, I
have newer version MS Graph, and wires are broken, and I am too lazy at the
moment.

Reinis Kanders


Quote:
> 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.

> --

> Technicien R&D

> C.C.R.M
> Rue des Belles-Pierres 5
> 1421 Ophain
> http://users.skynet.be/ccrm

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----


Mon, 02 Dec 2002 03:00:00 GMT  
 Activex problems
Thank you really for your help ! It was simple... But not obvious ! :-)
I'll try this & tell you if it ok.

MG



Quote:
> I looked at the VI you provided and was able to correct the problem.

Since the Method Chart Axes
Quote:
> has 3 options of what to return, the return type has to be a variant.  I

just clicked on your
Quote:
> automation refnum above the Convert To G function and selected Graph.Axis

(Microsoft Graph 8.0 ->
Quote:
> Axis).  That is the desired return type for the xlValue selection.  The

Property control wired to
Quote:
> the Convert then showed the full range of properties.

> -Michael
> --

> 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


> > 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.

> > --

> > Technicien R&D

> > C.C.R.M
> > Rue des Belles-Pierres 5
> > 1421 Ophain
> > http://users.skynet.be/ccrm

> >                                      Name: Occupation -
Dpouillement.zip
> >    Occupation - Dpouillement.zip    Type: Zip Compressed Data

(application/x-zip-compressed)

- Show quoted text -

Quote:
> >                                  Encoding: x-uuencode



Tue, 03 Dec 2002 03:00:00 GMT  
 Activex problems
Exactly the answer of the NI support ! Well done. Thanks you for your help !
:-)

MG



Quote:
> To get objects refnum to be connected to the conert to G data do
following:
> 1) Create a new ActiveX refnum control on the front pannel
> 2) Right click, and go to browse and search for MS Graph Object Library
> 3) Once you pick it, selection box will be empty, so uncheck "Show
Creatable
> Objects only" box
> 4) There should be an option to select Axes object.
> Why it keeps on running I have no idea since I cannot run your example, I
> have newer version MS Graph, and wires are broken, and I am too lazy at
the
> moment.

> Reinis Kanders



> > 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.

> > --

> > Technicien R&D

> > C.C.R.M
> > Rue des Belles-Pierres 5
> > 1421 Ophain
> > http://users.skynet.be/ccrm

> -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
> http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
> -----==  Over 80,000 Newsgroups - 16 Different Servers! =-----



Tue, 03 Dec 2002 03:00:00 GMT  
 Activex problems
MS Graph has method Quit so you might try invoking it after modifying graph
to stop MS Graph from running.


Quote:
> Thank you really for your help ! It was simple... But not obvious ! :-)
> I'll try this & tell you if it ok.

> MG



> > 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
> > --

> > 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


> > > 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.

> > > --

> > > Technicien R&D

> > > C.C.R.M
> > > Rue des Belles-Pierres 5
> > > 1421 Ophain
> > > http://users.skynet.be/ccrm

> > >                                      Name: Occupation -
> Dpouillement.zip
> > >    Occupation - Dpouillement.zip    Type: Zip Compressed Data
> (application/x-zip-compressed)
> > >                                  Encoding: x-uuencode

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----


Tue, 03 Dec 2002 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. activex problem, qfeed

2. ActiveX problems

3. LABView ActiveX Problem

4. ActiveX problem again!

5. RT 6.03 and ActiveX problem

6. ActiveX problems after upgrading to 7.0

7. PowerCobol / ActiveX Problem

8. Problem with ActiveX dual interface.

9. Problems with AS/400 ActiveX call

10. Problems using JSPayne's IO ActiveX control

11. CW5.5 and ActiveX (Syntax problems?)

12. ActiveX prop. problem with C4b

 

 
Powered by phpBB® Forum Software