LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to add custom functions to the Report Generation Toolkit?

I would like to be able to delete unused sheets from an Excel report without having  to reopen the file (and Excel) to do it using ActiveX. It is probably not possible since the NI_Excel.lvclass is locked but maybe there is some other way to do it.

 

Ben64

0 Kudos
Message 1 of 5
(2,648 Views)

I think they would be better served if you put them in a user library so that way in the future they are easier to move when you do have to upgrade LabVIEW. It seems that they would be easier to manage too.

 

I have all kinds of special VI that modify existing LabVIEW stuff and I keep them in the user library. This way I just pick up my user.llb floder and move it to the new version and I have everything.

Tim
GHSP
0 Kudos
Message 2 of 5
(2,646 Views)

I just tried to explore the Excel report gen toolkit. In that one when you open a Method (Invoke node) of an excel worksheet you have one option called delete after giving the name of the worksheet that you wanted to delete use the method and check it. Even I have never tried these sort of things.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 3 of 5
(2,645 Views)

Yes It is working I am able to delete the worksheet. Smiley Very Happy

-----

The best solution is the one you find it by yourself
0 Kudos
Message 4 of 5
(2,640 Views)

@P Anand wrote:

I just tried to explore the Excel report gen toolkit. In that one when you open a Method (Invoke node) of an excel worksheet you have one option called delete after giving the name of the worksheet that you wanted to delete use the method and check it. Even I have never tried these sort of things.


It not clear exactly what you mean. but as an alternative I found the Excel Get Active X References.vi in the toolkit, I can use this vi with the delete method. Initially the issue I had was that you can't unbundle the Excel report to get acces to the activeX references when you're outside the NI_Excel.lvclass (as in the following picture).

 

Ben64

 

ProjectView004.png

0 Kudos
Message 5 of 5
(2,631 Views)