Upgraded to Office 2010, now Word automation not working from Matlab - The 'Color' property name is ambiguous in the 'Microsoft_Word_14.0_Object_Library._Font' class.
Show older comments
After performing a lot of calculations I am generating a word document via automation.
I create the document via:
MATLAB code
wordApp = actxserver('word.Application');
wordDoc = invoke(get(wordApp, 'Documents'), 'Add');
At one point I try and set the text color via:
MATLAB code
selection = wordApp.Selection;
selection.Font.Color = 255;
This worked fine (perfectly!) until I upgraded to Word 2010, now I get the error:
The 'Color' property name is ambiguous in the 'Microsoft_Word_14.0_Object_Library._Font' class.
I have tried a lot of googling and everything I can think of to fix this but no luck.
Does anyone have any ideas please?
Tom.
Accepted Answer
More Answers (1)
tombola
on 21 Mar 2012
0 votes
Categories
Find more on Performance and Memory 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!