mlreportgen:ppt_error:invalidImageType only when GUI is compiled
Ältere Kommentare anzeigen
Im getting an Errormessage for my Report Generator GUI when i compile it to a standalone Application.
My GUI takes Measurement Files and plots them afterwards it saves the figures as an Image and replaces them in a PPT.
When i compile it i get this Error Message "mlreportgen:ppt_error:invalidImageType" for creating the Picture Object.
if ismcc || isdeployed %für das compilen notwendig
makeDOMCompilable();
makePPTCompilable();
end
import mlreportgen.ppt.*
[...]
cd(app.path);
namepic=(sprintf("Bild%u.bmp",i));
saveas(fig,namepic); % figure als Bild abspeichern.
try
pic=Picture(which(namepic));%Bild als Bildobjekt aufnehmen
catch ME
msgbox({ME.identifier;"Bildobjekt erzeugen Fehler"});
end
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu MATLAB Report Generator finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!