MATLAB Answers

Unrecognized property 'value' for class 'matlab.ui​.control.L​abel'. app gui .Word to pdf converter

36 views (last 30 days)
duna saleh
duna saleh on 13 Nov 2020
Edited: Mario Malic on 14 Nov 2020
my app is Word to pdf converter but I have two error


Sign in to comment.

Accepted Answer

Mario Malic
Mario Malic on 13 Nov 2020
There's difference between EditField and EditFieldLabel, also, properties are case sensitive.
Replace this in the first two callbacks. Typo in second - strcat.
In third, property Value should be uppercase.


Show 4 older comments
Mario Malic
Mario Malic on 14 Nov 2020
app.STARTButton.Enable = 'OFF';
docFile = app.ImportimportDocEditField.Value; % as mentioned above, error was here
% the component name is the problem
pdfFile = app.ExportPDFEditField.Value;
[status,message] = doc2pdf(docFile,pdfFile);
if status ==1
app.STARTButton.Enable ='on';
duna saleh
duna saleh on 14 Nov 2020
Thank you for your help. I am sorry, but I have a new problem
undefined function 'doc2pdf' for input argument of type 'char'.
Mario Malic
Mario Malic on 14 Nov 2020
According to function description in FEX, character array is accepted as input argument.
Use fullfile to instead of strcat to construct a full filepath.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!