キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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 件の賞賛
メッセージ1/14
3,200件の閲覧回数

Anyone?

0 件の賞賛
メッセージ2/14
3,176件の閲覧回数

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 件の賞賛
メッセージ3/14
3,173件の閲覧回数

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

0 件の賞賛
メッセージ4/14
3,170件の閲覧回数

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 件の賞賛
メッセージ5/14
3,160件の閲覧回数

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 件の賞賛
メッセージ6/14
3,156件の閲覧回数

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 件の賞賛
メッセージ7/14
3,153件の閲覧回数

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 件の賞賛
メッセージ8/14
3,150件の閲覧回数

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 件の賞賛
メッセージ9/14
3,144件の閲覧回数

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

0 件の賞賛
メッセージ10/14
3,141件の閲覧回数