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.