ActiveX control does not work on Word 2007.

Y

Yang Lu

I post this problem a while ago in Word Application Error group, but I did
not get any feedback. So I post it here again, hope I can get some feed back.

************
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top