LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get .doc report generation working in build, does work in LV

Hi all

 

Somehow I can't get the report generation to work inside a builded .exe. During development in Labview it just works fine. I tried to include some things but still it does not work.

 

I added an attachment where you can see which blocks I'm using.

For your information: When I try to output the document in an executable nothing happens, no error but also no output... When I try to run the .VI it does work.

 

Hope someone can help me out.

Thanks in advantage.

0 Kudos
Message 1 of 14
(2,314 Views)

Anyone?

0 Kudos
Message 2 of 14
(2,290 Views)

Patrick,

Have a look at this:

http://digital.ni.com/public.nsf/allkb/8A0E6274D9BD7B1986256F62006AD402

Also the links at the bottom of the above page.

Hope this helps. I had to add most of the report generation toolkit libraries to finally get it to work!

regards,

aCe


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 3 of 14
(2,287 Views)

I already did everthing that is mentioned over there. Included just all but still nothing happens

0 Kudos
Message 4 of 14
(2,284 Views)

Patrick,

Its strange that you dont get any error. I am assuming that you are running the executable on the development machine itself?

 

I have had to add the following explicitly (not in dependencies) to get my executable to work. Some of it may not be required but I was done experimenting!

 

test1.PNG

 

Which version of labview are you using?

 

Also you could add a word bring to front vi just for debugging to check if the program is getting far at all or not.

 

 test2.png

 

aCe

 


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 5 of 14
(2,274 Views)

After including just ALL ni report stuff, also the excel library's etc. I get this error when I try to output the info:

 

Possible reason(s):

LabVIEW:  Library has errors. Fix the errors before attempting this operation.


Complete call chain:
     Get LV Class Default Value.vi
     NI_report.lvclass:New Report.vi
     Output all simulation info.vi
     Ivette v2.vi

LabVIEW attempted to load the class at this path:
C:\Program Files\National Instruments\LabVIEW 2009\vi.lib\Utility\NIReport.llb\Word\NI_Word.lvclass

 

 

It is stuck at the moment the program SHOULD open the word template. Thats how far I can check with debugging it by making things visible at certain points.

 

Edit:

Labview 2009

And yes: at the development machine itself 🙂

0 Kudos
Message 6 of 14
(2,270 Views)

Please check your path in the .exe file.
You are using the "This .vi" path constand, witch is different in a build .exe file compared to the dev. system.

Make sure that it is not a path within the .exe file and that it is pointing to the right document.

0 Kudos
Message 7 of 14
(2,267 Views)

How to point it at the right path?

 

I'm now pointing at Rapport\template.doc and adding the position of the VI in front. I want to place the template in the main directory of the executable, but it should not be a problem to move that directory to another place without any problems. 

 

Edit: you're right, the appended path is wrong: IVette.exe\Rapport\template.doc

How to do this the right way?

0 Kudos
Message 8 of 14
(2,264 Views)

There are many ways to do it, I have used this in the past.

 

test3.png


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 9 of 14
(2,258 Views)

Used another way to obtain the path, so the path is right now, but still the same error.

0 Kudos
Message 10 of 14
(2,255 Views)