LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use the report generation toolkits and build a stand alone exe?

I have built a help document with the Report generation toolkits. I can't get the app builder to create an exe that works. I've tried attaching the word and excel templates but still no luck. any suggestions?
0 Kudos
Message 1 of 10
(3,313 Views)
Section in this doc on using toolkit in executable.  http://www.ni.com/pdf/manuals/323805a.pdf
0 Kudos
Message 2 of 10
(3,304 Views)

Did you add the dynamic Vis for word and excel when you build your appplication as mentionned in the report generation toolkit documentation ?

 

When building applications with Report Generation Toolkit VIs, you must

complete the following additional steps:

• From the

Source Files tab of the Build Application or Shared

Library (DLL)

dialog box, click the Add Dynamic VI button to

add the following two VIs to the application:

_Excel Dynamic VIs.vi in vi.lib\addons\

_office\_exclsub.llb

_Word Dynamic VIs.vi in vi.lib\addons\

_office\_wordsub.llb

• If the application you are building contains the MS Office Report

Express VI, you must add any Word or Excel templates that you use

to the built application. From the

Source Files tab, click the Add

Support File

button to add the template files to the application. By

default, the custom destination for the templates is the same as the path

that appears in the

Destination directory field on the Target tab with

a

data subdirectory appended. Do not change the custom destination

for the files you add.

For example, if you are using the basic Excel template with the

MS Office Report Express VI, add

MSOffice_RGT_Template.xlt

to the application. The basic template files are located in the

templates\Report

directory.

0 Kudos
Message 3 of 10
(3,302 Views)
Yes.  It will not work without dynamic vi's.
0 Kudos
Message 4 of 10
(3,297 Views)
Thanks everyone,

I followed all these steps,

And - I've discovered that I also need to add every vi that contains a report gen tool to the support files list, about 20 different sub vi's that I'm using.
The build executable wizard is not very helpful in this area. I had to start with new project in my top level vi to gain access to adding all of the files I needed.

This process makes me wish I  stuck with Active X controls.
0 Kudos
Message 5 of 10
(3,293 Views)
jdam,
 
Went back and checked all my past projects that use Report Toolkit.  I've never had to include all the subvi's that use the toolkit as support files.  Are your subvi's set to be reentrant?  What version of LV?
0 Kudos
Message 6 of 10
(3,252 Views)
Centerbolt,
I'm using 8.2.1 and it won't work w/o all of the subs. My program is a help document that opens word and displayes screen shots of VI fron panels. W/o all of the subs, one for each panel, the word document opens but displays nothing.

Thanks for the input.
0 Kudos
Message 7 of 10
(3,249 Views)

jdam,

So all the subvi's in question ones that you are getting the front panel images of? 

0 Kudos
Message 8 of 10
(3,240 Views)
yes
0 Kudos
Message 9 of 10
(3,237 Views)

Here's a guess at what is happening.

I'll assume you are using the Append Front Panel Image to Report.vi.  If you dig down into that vi you'll notice that it is opening a reference to the vi you want the image of.  I'm guessing that in order to get the image it needs a couple of things.  One it needs to find the vi either in memory or by a path.  Second, the vi needs to retain its front panel.  Seems like Application Builder rips out all the subvi front panels by default.

Including the subvi's as dynamic/support files would satisfy both criteria. 

0 Kudos
Message 10 of 10
(3,232 Views)