LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Excel Report - OLEObject functions

Solved!
Go to solution

Hi ,

 

I'm using CVI 9.0 .

 

I'm trying to add my Excel report a Rectangle Shape and Line shape , i'v tryied to add it using OLEObject with no luck...

 

is there an example ? or some guide ?

 

Thanks 

-----------------------------------------
Kobi Kalif
Software Engineer

0 Kudos
Message 1 of 9
(4,530 Views)

Hi KobiKal,

 

Here is some fairly exhaustive ActiveX examples for Excel with CVI.

 

Hope this helps!

 

Regards,

Dustin D

0 Kudos
Message 2 of 9
(4,500 Views)

Hi Dustin , 10X for the replay 

 

Where are the Examples ?

-----------------------------------------
Kobi Kalif
Software Engineer

0 Kudos
Message 3 of 9
(4,493 Views)

in the menu bar: Help / Find examples...

0 Kudos
Message 4 of 9
(4,489 Views)

Hi KobiKal,



Here is the link.  Sorry about the confusion.

 


Regards,

Dustin D

0 Kudos
Message 5 of 9
(4,473 Views)

KobiKal,

 

These examples will be good to check out as well:

 

 

 

Regards,

 

Dustin D

0 Kudos
Message 6 of 9
(4,467 Views)

Hi Dustin ,

 

I know this examples and before i'v posted mt question I'v my Report with them .

 

Everything is complete except of one thing i am trying to add A simple rectangle to the Work Sheet But still with no luck .

 

What i'm trying to do is shown in the Picture that i'v added to this post .

 

Maybe you can help me is there and example you know with shapes ? or maybe you have something like that ? 17189i30D70876117D0320

-----------------------------------------
Kobi Kalif
Software Engineer

0 Kudos
Message 7 of 9
(4,398 Views)
Solution
Accepted by Kobi_K

Hi KobiKal,


You may be able to write a macro or VBA script that will draw the shape that you can call from CVI.  It seems like there is a limitation on creating shapes with the ActiveX interface to Excel.  Your best option would be to code a VBA script that you can call via ActiveX.

 

Hope this helps!



Dustin D

0 Kudos
Message 8 of 9
(4,362 Views)

10X I'm using macro code and its working great !

-----------------------------------------
Kobi Kalif
Software Engineer

0 Kudos
Message 9 of 9
(4,293 Views)