01-10-2013 01:37 PM
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.
01-15-2013 05:13 AM
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
01-18-2013 12:28 AM
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.
01-28-2013 10:35 AM - edited 01-28-2013 10:36 AM
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.
01-28-2013 10:47 PM
Follow what i suggess for path otherwise sooner or later you gonna face problems.
01-29-2013 04:33 AM