LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i add graph object to exel

Hi,
 
I want to add graph object to exel.
I'm trying to work  with the Exel_OLEObjectAdd command, but with no success.
Can you send me or write me exemple code for this command?
 
Tank you..
0 Kudos
Message 1 of 6
(3,921 Views)
Hi sruly,

This is in Excel, and can be used with ActiveX in CVI.  You can create an ActiveX Controller from the Tools menu in CVI.  You would then select Excel, and whatever methods you are wanting to use.

Here is a link to find where your Microsoft help would be for your software.

How to find and use Office object model documentation

http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q222101&

Gavin Fox
Systems Software
National Instruments
0 Kudos
Message 2 of 6
(3,901 Views)
Hi , thank you for your answer.
 
sorry, i think you miss understood me, i need to work with  Exel_OLEObjectAdd  command only,
 
I need example because when I'm using this command there is an error.
 
Please help, it's very important to me.
 
 
0 Kudos
Message 3 of 6
(3,888 Views)
Hi sruly,

Are you using CVI?  Which version?  How are you using that method?  What error are you getting?
If the error isn't related to CVI, we might have to use Microsoft's MSDN help to figure out the Excel method.

Gavin Fox
Systems Software
National Instruments
0 Kudos
Message 4 of 6
(3,860 Views)

Hi, I'm using Cvi 6..

The Method is Exel_OLEObjectAdd .

If u have example for this Method it will be helpful for me.

0 Kudos
Message 5 of 6
(3,838 Views)
Hi sruly,

What error are you getting when you call this method?
Can you post your function call?

Are you just looking for the prototype?
Here is the prototype that I found.

Excel_OLEObjectsAdd (CAObjHandle objectHandle, ERRORINFO errorInfo, VARIANT  classType, VARIANT  filename, VARIANT  link, VARIANT  displayAsIcon, VARIANT  iconFileName, VARIANT  iconIndex, VARIANT  iconLabel, VARIANT  left, VARIANT  top, VARIANT  width, VARIANT  height, ExcelObj__OLEObject *returnValue);

Gavin Fox
Systems Software
National Instruments
0 Kudos
Message 6 of 6
(3,804 Views)