- Try to compile the application using the Application Compiler app instead of using "compiler.build.standaloneApplication" function.
- Also check the version of MATLAB in which App is compiled and version of theMATLAB Runtime environment are same or not. Differences in version can cause some issues in the execution of the application.
- Also check if you have permissions to write or access the word file or not.
- Also refer to the following link regarding common errors faced while compiling standalone application: https://www.mathworks.com/help/compiler/does-the-failure-occur-when-deploying-the-application-to-end-users.html
- Since you are not receiving any error message, I suggest modifying the code using "Try-Catch" statements and log the errors in a text file, and later debug the error displayed in the text file. Please refer to the following code example to implement a logging feature in the codebase:
Report generator in compiled application
4 次查看(过去 30 天)
显示 更早的评论
I had a MATLAB program where I could create a report through opening an existing word template (with "holes") and filling them appending data and moving to the following hole. Then that file would be saved in an specific path. All that worked. Now, I made a compiled application and when I try to generate the report it doesn't work. I don't know the reason as I don't get any error feedback. I tried adding makeDOMCompilable() at the beggining but didn't work. ¿Any idea on how to solve it or, at least, check where the compiled application stopped?
Thanks a lot in advance!
0 个评论
回答(1 个)
Ashutosh Thakur
2024-1-25
Hi Sergio,
The issue with compiled application involving report generation can be due to various reasons. I am listing down some reasons which would help you in troubleshooting the issue:
try
% Your code to generate the report
catch ME
fileId = fopen('errorLog.txt', 'a');
if fileId ~= -1
fprintf(fileId, '%s: %s\n', datestr(now, 0), ME.message);
fclose(fileId);
end
end
I hope this helps you in resolving the issues associated with the standalone application.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Adding custom doc 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!