import file to standalone application

I have developed a MATLAB application that needs to process Excel files. When testing the application inside the App Designer environment, it worked perfectly by loading and manipulating the Excel files as expected.
However, after deploying the application as a standalone executable, it no longer loads or interacts with the Excel files at all. The application runs but fails to access the Excel data it requires.

Answers (1)

How were they loaded? Did you just find all files in the current folder and load them? Did you list them all in a listbox and the user clicks on the filename? Did you force the user to browse for it with uigetfile()?
Chances are you're expecting the file to be in the current folder but the current folder is not where your executable is located. It's a long explanation, just trust me on this.
It's possible that you didn't ship any files with your app or there are no files on the target computer.
For more info, see the FAQ:
Number one thing is to make sure you used fullfile when you were building the input Excel filename.

Products

Asked:

on 18 Jan 2024

Answered:

on 18 Jan 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!