Article ID: 135765 - Last Review: November 21, 2006 - Revision: 2.1 PRB: Convert Dialog Doesn't Appear for OLE Object in MS ExcelThis article was previously published under Q135765 On This PageSYMPTOMS
When the Edit|<Object>|Convert... menu item is selected for an OLE object
that is embedded within a Microsoft Excel document, the Convert dialog box
does not appear.
CAUSE
Microsoft Excel displays the Convert dialog for an object only if
WriteFmtUserTypeStg has been used to write out a clipboard format and
user-readable name for the contents of the object. The MFC libraries do not
call this function when creating or saving OLE objects.
RESOLUTION
Call WriteFmtUserTypeStg in the Serialize method of your server's document
class.
STATUS
This behavior is by design.
MORE INFORMATION
WriteFmtUserTypeStg should be called as part of your server's
implementation of IPersistStorage::InitNew and IPersistStorage::Save. By
default, MFC OLE server applications do not call WriteFmtUserTypeStg in
their implementation of IPersistStorage::InitNew and IPersistStorage::Save.
One simple way to achieve this functionality in an MFC application is to
make the call to WriteFmtUserTypeStg in the Serialize method of the
server's document class.
Steps to Add a Call to WriteFmtUserTypeStg
Sample CodeAPPLIES TO
| Article Translations
|
Back to the top
