Compiled App Report Generator Function Does Not Work on PC Without Matlab and makeDomCompilable Does not Resolve the Issue.
이전 댓글 표시
The code below is excecuted correctly (with a push button) when the app is compiled and runs on a computer with MATLAB installed. However, when it is installed on a different machine, the same code produces an error. The rest of the App does work on both machines. Any insights would be much appreciated.
makeDOMCompilable();
import mlreportgen.dom.*
import mlreportgen.report.*
load FilePaths.mat TempPath QuotePath
R = Document(QuotePath,'docx',TempPath);
open(R)
moveToNextHole(R);
app.Date = 'today';
append(R, app.Date);
moveToNextHole(R);
append(R, app.IDEditField.Value);
moveToNextHole(R);
append(R, app.NameEditField.Value);
moveToNextHole(R);
text = app.BillingAddressEditField.Value;
append(R, text);
moveToNextHole(R);
append(R, app.TelephoneEditField.Value);
moveToNextHole(R);
append(R, app.NameEditField.Value);
moveToNextHole(R);
D = date;
append(R, D);
moveToNextHole(R);
append(R, app.JobAddressEditField.Value);
moveToNextHole(R);
append(R, app.TermsEditField.Value);
moveToNextHole(R);
append(R, app.JobDescription);
moveToNextHole(R);
T = app.MatList;
append(R, MATLABTable(T));
moveToNextHole(R);
append(R, app.NetCost);
moveToNextHole(R);
append(R, app.Freight);
moveToNextHole(R);
append(R, app.HST);
moveToNextHole(R);
append(R, app.TotalCost);
close(R)
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!