MATLAB standalone application that includes Excel data template
Mostrar comentarios más antiguos
I would like to include an Excel spreadsheet within my standalone application that has a lot of formatting applied and will simply be filled with data and saved to a local drive. If I include it as a 'required file' during compilation, MATLAB opens it when I load the program. Obviously I can prompt the user to select the file or I can save the file in a specific directory, but is there any way to do it by storing the xlsx file as part of the program?
3 comentarios
Kevin Chng
el 27 de Oct. de 2018
Hi, let part by part break down what you are saying
Compile your application together with Excel spreadsheet
In this part, why don't you store your data in mat. file instead. Since user can't see the excel file as it is part of the your executable file.
Obviously I can prompt the user to select the file or I can save the file in a specific directory
If user want to select the file and write to a excel file saving in a sepcific directory, at this moment, you program read the mat.file and then write to excel by either readtable(), xlsread(), or ActiveX. It allows you to save the excel file in whatever directory you want.
but is there any way to do it by storing the xlsx file as part of the program?
Still same, I recommend to save your data in mat file and compile them in mat file.
ChiPhi85
el 27 de Oct. de 2018
Kevin Chng
el 28 de Oct. de 2018
For compilation, i'm still prefer save it as mat. file. if user want to print it, at that moment, in your program, you write your data to excel.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Data Import from MATLAB en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!