Embed and Call Outside Files in Compiled Application

12 vues (au cours des 30 derniers jours)
Frank Forkl
Frank Forkl le 10 Sep 2018
Commenté : Frank Forkl le 11 Sep 2018
I have written a script with a GUI for processing analysis data, and packaged it using the Application Compiler. I have a .docx file that I wrote as a user's guide. I am wondering, if I include the .docx as a file to package inside the .exe, can I have the application open and display that file? If so, what is the syntax to open an outside file inside a compiled application?
Due to IT limitations at my company, I've been sharing just the .exe with my colleagues, not the installer that the compiler generates. I know that "ctfroot" would work to point to the file if my users installed the application, but it would be much more useful if it functioned as a standalone.

Réponses (1)

Kevin Chng
Kevin Chng le 11 Sep 2018
Hi,
If you package your exe. include the .docx file (file installed for your end user), you may just use
% in your call back function
winopen('a.docx')
Ensure the .docx file is in the same path with your exe.
Hope it help you
  1 commentaire
Frank Forkl
Frank Forkl le 11 Sep 2018
Kevin, thanks for the answer. That does work, but isn't exactly what I meant. What I meant was, if I include the .docx in the "Files required for your application to run" area of the compiler, such that it gets wrapped up inside the .exe, can I then access it directly from inside the .exe package? And if so, how?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Produits


Version

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by