Y
Yang Lu
I am having problems to make my MFC ActiveX control work on Word 2007.
Inside my control, I use PX_Blob() to serialize data according to this
article:
http://msdn2.microsoft.com/en-us/library/xxf9wx2c(VS.71).aspx
Here are the steps to reproduce the problem:
1. Create a MFC ActiveX control and use PX_Blob() to serialize data.
2. Insert the control on the Word 2007 document.
3. Save the document as .docx - the new word format.
4. Quit Word 2007
5. Open the Word 2007 and open the file you just saved.
6. The PX_Blob() will NOT return the data you just saved.
I found PX_Long() and PX_String() work fine in the above senario. Also if I
save the file as Word 2003 format (.doc) from Word 2007 the PX_Blob() works
fine too.
I also tested this PX_Blob() issue on Word 2000, 2002 and 2003. They all
work fine.
Looks like this problem only happens to Word 2007 and .docx format.
Inside my control, I use PX_Blob() to serialize data according to this
article:
http://msdn2.microsoft.com/en-us/library/xxf9wx2c(VS.71).aspx
Here are the steps to reproduce the problem:
1. Create a MFC ActiveX control and use PX_Blob() to serialize data.
2. Insert the control on the Word 2007 document.
3. Save the document as .docx - the new word format.
4. Quit Word 2007
5. Open the Word 2007 and open the file you just saved.
6. The PX_Blob() will NOT return the data you just saved.
I found PX_Long() and PX_String() work fine in the above senario. Also if I
save the file as Word 2003 format (.doc) from Word 2007 the PX_Blob() works
fine too.
I also tested this PX_Blob() issue on Word 2000, 2002 and 2003. They all
work fine.
Looks like this problem only happens to Word 2007 and .docx format.