02-08-2006 04:32 PM
02-08-2006 05:33 PM
What version of LabVIEW and the Report Generation Toolkit are you using? I remember adding some code in the 1.1 version of the toolkit to attempt to avoid some Microsoft Excel latencies with opening/closing the application repeatedly, but it was by no means fool proof, since Excel sometimes takes its sweet time leaving memory when the application exits. Without knowing any more specifics, my best suggestion is for you to add a small delay between successive operations regarding opening/closing Excel and see if that helps. Also, if you could post a simple VI that demonstrates the behavior, that would be extra helpful.
Oh yeah, and another suggestion would be to open one report reference at the beginning of your program, and use this reference through the whole thing...I understand that this might not be possible, though, if you're opening different worksheets throughout the course of your application running.
Good luck,
-D
P.S. - For those of you reading this wondering why I would automatically assume MegaMan is using the Report Generation Toolkit, he cites error -41106, which is an error specific to this toolkit.
02-10-2006 08:04 AM
Thank you very much for your suggestion. I added a 100 millisecond wait to each VI I created that accesses the worksheets. I ran the program and it works very nicely.
Thanks again for your help.