From: ltok on
Hi
 
I am having a problem. I am using LabVIEW 8.20, Report Generation Toolkit for Microsoft Office 1.1.2 and Microsoft Excel 2003. My OS is Windows XP (SP )
 
I want to build the vi attached below into an exe. The vis that I used are from addons>>_office>>excel.llb. I follow the suggestion found in the link below and add in all the files in excel.llb into my project so that it can be added into the executable as dynamic vis. However, some vis in excel.llb cannot be added into my project. After I have add all vis that can be added into the project, I build an application (exe) with the vi below as the Main vi and all other added vis (from excel.llb) as dynamic vis. After that, I build and run this exe on the same PC. I am unable to run it.
 
This vi will save datas when I click on the stop button. After I click on the stop button, a window will pop-up and prompt me to select which directory to save the vi. When I run the exe, I type in test.xls (for example) but the file saved is a picture and not an excel file. If I just run the vi instead of the exe, Excel will open and datas and graph will be displayed in Excel.
 
May I know where did I done wrong??
 
How do I use the Report Generation Toolkit in an executable with Microsoft Excel?
<a href="http://digital.ni.com/public.nsf/websearch/C38CE3F30542D65B86256F0E00740DD8?OpenDocument" target="_blank">http://digital.ni.com/public.nsf/websearch/C38CE3F30542D65B86256F0E00740DD8?OpenDocument</a>
&nbsp;
Thank you &amp; Regards
Lee


Self-Regulating.vi:
http://forums.ni.com/attachments/ni/170/242632/1/Self-Regulating.vi


Untitled Project 1.zip:
http://forums.ni.com/attachments/ni/170/242632/2/Untitled Project 1.zip
From: centerbolt on
You only need to add one dynamic vi from the Excel library.&nbsp; Look at page 9 of the Report Generation Toolkit manual for the specifics.&nbsp; <a href="http://www.ni.com/pdf/manuals/323805a.pdf" target="_blank">http://www.ni.com/pdf/manuals/323805a.pdf</a>
&nbsp;
From: ltok on
Hi centerbolt,
Thank you for your reply. I have tried adding in just that dynamic vi&nbsp;found in&nbsp;Excel Library and my main vi but it still cannot work. Is there anything that I need to look out as well?? [View attached picture.]
Thank you &amp; Regards
Lee


added.JPG:
http://forums.ni.com/attachments/ni/170/242933/1/added.JPG