How do I update fields in a Word document using activeX in MATLAB?
Ältere Kommentare anzeigen
I used MATLAB to add a new figure to a Word document and would like to update the figures list.
hWord = actxserver('word.application');
hWord.Visible = 1;
hDocs = hWord.documents;
hDoc = hDocs.Add;
hDoc.Activate;
hDoc.fields.update
When I run this script, I get the following error:
'update' needs one of the following:
Database Toolbox
Fuzzy Logic Toolbox
Instrument Control Toolbox
Predictive Maintenance Toolbox
Robotics System Toolbox
Simulink Control Design
Simulink Real-Time Statistics and Machine Learning Toolbox
System Composer
error test (line 11)
hDoc.fields.update
How do I update the fields in my Word document?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Use COM Objects in MATLAB finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!