Can I create a COM server between MATLAB 64bit and PowerPoint 32bit?
Show older comments
I've been trying to create a COM server between Matlab and PowerPoint using the function actxserver. So far I have not had any luck and always get an error. I searched the internet and came across some sources that said COM servers cannot be created for a Matlab 64-bit version while trying to use a Microsoft Office 32-bit version. Is this true? Would it work if I had a 32-bit version of Matlab? Thanks!
Answers (2)
Kojiro Saito
on 18 Jul 2018
I can create a COM server between 64 bit MATLAB (R2018a) and 32bit PowerPoint (2016) by the following.
e = actxserver('PowerPoint.Application');
e.Visible = 1;
What an error do you get?
3 Comments
Michael Esneul
on 19 Jul 2018
Kojiro Saito
on 19 Jul 2018
What is the version of PowerPoint?
Image Analyst
on 20 Jul 2018
Is this for a complied and deployed version, where you don't know the version of your end user? Otherwise, if it's on your system, why don't you just get the 64 bit version of Office and try that?
Walter Roberson
on 20 Jul 2018
0 votes
"The system isolates 32-bit applications from 64-bit applications, which includes preventing file and registry collisions. Console, GUI, and service applications are supported. The system provides interoperability across the 32/64 boundary for scenarios such as cut and paste and COM. However, 32-bit processes cannot load 64-bit DLLs for execution, and 64-bit processes cannot load 32-bit DLLs for execution."
Categories
Find more on Use COM Objects in MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!