Click here to Skip to main content
15,888,082 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Everyone,

I have an issue the usage of ActiveX in Word 365.
I can copy/paste the ActiveX control onto Word 365 but when I apply a save / load actions, it does not work as expected.
Based on the animation video showing the effect, you will see the document save works as expected and invoke the IPersistStorage::Save method but when I decide to apply a file open document, it directly performs a IPersistStorage::Save and not a IPersistStorage::Load to retrieve the saved settings. Currently the effect is an activeX control attached to the document with his default settings.

The effect can be demonstrated here:
Effect on open document document

The code related to the IPersistStorage interface is visible here:
Persist.cpp

The code related to the main body of the activeX control maybe be visible here:
MFCActiveXControl1Ctrl.cpp

The entire project to repeat on your end is downloadable here:
Entire project

I would like to know if somebody has already discovered the same issue and why IPersistStorage behaves differently and what is the new concept to use to be compatible with the new Office 365 package (Word / PowerPoint mainly).

Thank you very much in advance.
Best regards.
MiQi

What I have tried:

I have seen the docx format is not a compound file anymore.
If you rename the docx by zip, it will contain a folders tree with an ActiveX section.
This is strange IPersistStorage is still called but not behaving as expected.
Posted
Comments
KarstenK 10-Oct-18 6:43am    
Consult the error codes for some hints to guess the problem. :-O

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900