08-11-2009 11:03 PM
08-12-2009 01:59 AM
Hi Andrew,
can you show what you have done? Did you look inside the vi. There is only a property to set the visible flag. If you have an Excel._Application refnum, then you can use this directly this property node.
Mike
08-12-2009 04:08 AM
Hi drewsali
Switching between using the report generation toolkit and ActiveX calls can be tricky. Especially going from ActiveX to Report Generation as the toolkit is built on ActiveX. What I would recommend is, just like Mike recommended to open the VI and find the ActiveX calls are made then do the same direct in ActiveX in your VI.
Best Regards
David
NISW
08-12-2009 12:05 PM
Thanks for your input! I like your ideas for the work around. In this case, I agree, it would be easier to perform the same function using activeX in my top level VI.
Here are a few screen shots. "Excel Bring To Front.vi" had a clever way to go from "report in" to a "reference in". I tried to emulate the unbundle by name with the class operator and the "report" constant but was unsuccessful.
I'm still curious about why I was not able to duplicate the toolkits method of conversion. Suppose I want to make use of one of their more complicated VI's, though a conversion might be tricky, it would behoove me to have that in my toolbox as opposed to having to copy all their work for my uses.
Andrew
08-13-2009 12:04 PM
Hi Andrew
I had the same problem a while back and if I remember correctly it is because that unbundle is only possible in a VI that belongs to the toolkit. I'm a bit fuzzy on the details, but I'll check tmr when I'm back in front of a computer with LabVIEW. I think I solved it by rewritting the toolkit VI to fit the customers specific needs, but that is not something I can recommend. That solution was just a stopgap until I had time to do it in ActiveX.
Best Regards
David
08-17-2009 06:09 AM
Hi Andrew
You can only unbundle the report reference in a VI that belongs to the NI_Excel class.
Best Regards
David