- https://www.mathworks.com/matlabcentral/answers/361571-matlab-report-generator-to-be-used-on-standalone-application
- https://www.mathworks.com/matlabcentral/answers/99044-how-do-i-use-matlab-compiler-to-compile-an-application-that-uses-a-report-and-stylesheet-generated-b
- https://www.mathworks.com/matlabcentral/answers/326571-does-the-import-of-report-generator-work-with-maltab-compiler
makeDOMCompilable() DOES NOT resolve compiling application with report generator
13 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
farzad
el 21 de Mayo de 2020
Editada: Image Analyst
el 24 de Mayo de 2020
Hi All
As Matlab help has suggested, I used this command, BUT after Compiliing, the button to generate the report DOES NOT work while it works fine in the non compiled application.
What I do is that before calling the function that imports
import mlreportgen.ppt.*;
I use the command
if ismcc || isdeployed
% Make sure DOM is compilable
makeDOMCompilable()
end
It's really disappointing, cause after doing all I needed, now the compiled one does not work and I just hear a nice DANG error sound from the compiled app, also because I can not get a printed error to see why it is not working. but anyway I use windows 7 and matlab 2020
5 comentarios
Adam Danz
el 21 de Mayo de 2020
As I said, I don't have much experience with the compiler.
I noticed on the mcc page, if you scroll about 1/2 way down you'll see a 'caution' about the -a flag.
Respuesta aceptada
Rahul Singhal
el 22 de Mayo de 2020
Hi Farzad,
I see that you are using Report Generator PPT API to generate PowerPoint presentations.
To compile a PPT API program, you will have to use makePPTCompilable(). See https://www.mathworks.com/help/rptgen/ug/compile-a-presentation-program.html
Thanks,
Rahul
Más respuestas (1)
Image Analyst
el 22 de Mayo de 2020
Have you tried everything in the FAQ: FAQ#My_standalone_executable_won.27t_run_on_the_target_computer._What_can_I_try?
2 comentarios
Image Analyst
el 24 de Mayo de 2020
Editada: Image Analyst
el 24 de Mayo de 2020
MCR is enough only if you only call MATLAB functions. If everything works fine, you don't need to use Dependency Walker.
If you call your own DLLs and forgot to use the -a option, then Dependency Walker may still be useful to help you identify the missing file.. Or if somehow one of the dependencies of the MATLAB functions went missing somehow, then Dependency Walker will help you identify the missing file.
Ver también
Categorías
Más información sobre Standalone Applications en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!