LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

word document

Hi,
I created the word document and saved it on the specific folder using the "new report.vi" and "save report to file.vi".
On the "new report.vi" I've selected the "word" to the "report tipe". For the path I've used the "string to path conversion.vi" because I want to save that file by  the date. It works fine on the running mode. But when I tried to build application and run it as a stay alone program - the word document is not created and saved. And I have not get any errors.
How can I solve this problem?
Thanks a lot,
Boris
0 Kudos
Message 1 of 20
(4,663 Views)

Hello Boris

I have a feeling that it has something to do with not having your supporting vi attached to the main vi when you are building your stand alone try to go to the "Source File" tap and add them in.

hope this helps,

Jimmy

0 Kudos
Message 2 of 20
(4,644 Views)

 I had the same issue but with excel.  Try adding "_Word Dynamic VIs.vi" to your source file under Dynamic VIs and Support Files tab..  The file is in my vi.lib/addons/_office/wordsub.llb.  I use excel a lot and I have to add" _Excel Dynamic VIs" to my dynamic and support files.

 

Brian
Message 3 of 20
(4,640 Views)

Can you give me more details how did you do that.

Thanks,

Boris

 

0 Kudos
Message 4 of 20
(4,621 Views)
In the application builder, there's an option called "Source Files", second from the top in the list on the left in LV8.  Not sure exactly where it is in 7, but I think it's still called source files.

In 7 you just add it as a source file, and in 8 you add it in the "Dynamic VIs ...".

The Word Dynamic VI you're looking for can be found in (if you installed as in the default location) C:\Program Files\National Instruments\LabVIEW 8.0\vi.lib\addons\_office\_wordsub.llb.

Otherwise, it's in the _wordsub.llb, wherever you may have installed it.
Message 5 of 20
(4,611 Views)
Boris 
  I am using LabVIEW 8.
 In Project Explorer
1.  right click on My Computer and slect Add File and add the file _Word Dynamic VIs
2.  right click on your exe file this should be under Build Specifications.  Select Properties the properties window should pop up.
3.  On your properties page select Source Files.  You should see the file _Word Dynamic VI's.  Add this file to the Dynamic and Support Files window.
 
For LabVIEW 7.1
When you select Tools>Build Application or Shared Library, a window will pop up with tabs, now select the Source Files tab.  Select Add Dynamic VI button to add the file you need.
 
Brian
 
Brian
Message 6 of 20
(4,608 Views)
Thanks a lot guys.
It was very helpful.
It works now.
 
Boris
0 Kudos
Message 7 of 20
(4,603 Views)

Hey guys,

Ineed help again,

It works only on my mashine. When I installed the application on the different computer - it stopped save the file.

Why it's doing that?

I'm using LabView 8.0

Boris

0 Kudos
Message 8 of 20
(4,594 Views)
Have you tried running the exe on your machine?  And does that produce the same results?

Reason I ask is (unless this was changed in 😎 that paths change once you've built something into an executable.

See this thread for more info on that.

I'm not sure if that will solve your problem though
0 Kudos
Message 9 of 20
(4,591 Views)

I run exe on my mashine. It works. It did not works when i copy to another machine.

Thanks,

Boris

 

0 Kudos
Message 10 of 20
(4,586 Views)