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)

Réponses (0)

Catégories

En savoir plus sur MATLAB Compiler dans Centre d'aide et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by