LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Excel will not open from a built application.

After building my application to create a executable, when I run the program excel will not open. I have put the excel.llb and exclsub.llb files in as support files. Yet excel will still not open.
I'm using the report generation toolkit functions to open an excel file, then values are written to the file upon completion of a test. After that the report generated is to print out.

Excel will open when I run the source code version of the program, and print.

Any ideas on this problem?????
0 Kudos
Message 1 of 4
(3,017 Views)
Hi,

First thing to check is that you have a "data" directory in your application
directory. The "data" directory should have the report generation libraries
in them. The needed libraries are "_exclsub.llb" and "_wordsub.llb" for
excel resp. word. The can be found in "../labview
x.x/vi.lib/addons/_office/".

Having said all that, I have a slightly different situation were it still
doesn't work. It seems that if you build an executable on one pc, there is a
possibility the executable doesn't open excel on another pc. But the given
solution will be the problem most of the time.

Regards,

Wiebe.



"JohnnyKuch" wrote in message
news:50650000000800000026D40000-1079395200000@exchange.ni.com...
> After building my application to create a executable, when
I run the
> program excel will not open. I have put the excel.llb and exclsub.llb
> files in as support files. Yet excel will still not open.
> I'm using the report generation toolkit functions to open an excel
> file, then values are written to the file upon completion of a test.
> After that the report generated is to print out.
>
> Excel will open when I run the source code version of the program, and
> print.
>
> Any ideas on this problem?????
0 Kudos
Message 2 of 4
(3,017 Views)
Data directory is there with _exclsub.llb, _wordsub.llb, excel.llb, word.llb, and i put NIreport.llb in for good measure and still will not open excel.

Thanks much for your help.

JK
0 Kudos
Message 3 of 4
(3,017 Views)
Got it! Was adding files incorrectly!
0 Kudos
Message 4 of 4
(3,017 Views)