Compiled App Report Generator Function Does Not Work on PC Without Matlab and makeDomCompilable Does not Resolve the Issue.
Show older comments
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)
Answers (0)
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!