LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview .exe Report Generator Issue

Hi All.

 

I've developed a small executable application in labview for opening and saving reports in microsoft word.

 

I've installed the labview runtime environment on the computer that I want to run the .exe application and everything runs fine until I chose to save and open the report within the application. It opens microsoft word for 1 second and then cancels out of it.

 

On my own computer with labview installed it runs perfectly, opening the report and then saving it in a specified directory. This is where the problem lies it seems. 

 

The report generating element of the application requires a path directory to a microsoft word template in order to populate the report and it also needs another path directory to save the report. Since the directory on my computer will be different to that of the path in which I want to run the executable it results in the behaviour as mentioned above.

 

Has anyone any idea on how to resolve this or point me in the right direction??.

 

Any help is much appreciated. Thank You.

0 Kudos
Message 1 of 6
(2,630 Views)

Hi Banjo

 

Thank you for your post. Are you currently using constants to set the path in you VI? If so you should be able to change the path to a control. This way you can still access it from the front panel of the exe and configure it on any computer that it runs on. 

 

Let me know if this works or if I have misunderstood your question. 

 

Many thanks 

 

Daniel Harryman

Application Engineer 

National Instruments 

 

 

 

 

Daniel Harryman MEng
CLA, CPI
0 Kudos
Message 2 of 6
(2,583 Views)

HI Banjo,

                     Always use allplication directory path and be on the safer side. This wont affect your path problem ever.

Make a habbit of this.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 3 of 6
(2,555 Views)

Thanks for your replies guys.

 

I ended up using the microsoft office report vi to do what I needed but I had to right click on its icon on the block diagram and select "open front panel" to modify the code within. This allowed me to set the paths as constants.

 

Thanks again.

 

0 Kudos
Message 4 of 6
(2,532 Views)

Follow what i suggess for path otherwise sooner or later you gonna face problems. 

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 5 of 6
(2,519 Views)
Will do. Thanks for your input.
0 Kudos
Message 6 of 6
(2,508 Views)