DSOFramer & Word 2007

M

Michael Cessna

It appears that the DSOFramer.ocx project
(http://www.microsoft.com/downloads/...FD-2169-4FAC-82AF-770AA9B60D77&displaylang=en)
will no longer save Word documents when using Word 2007 (released version).
However, it works ok with the Beta and TR of Word 2007. The method that is
failing is CDsoDocObject::SaveStorageToFile. I've verified that the document
is in 97-2003 format and that the "Save files in this format" option is also
set to 97-2003.

Any ideas?

Thanks.

Regards,

Michael Cessna
 
M

Michael Cessna

An update regarding the problem:

The problem appears to be related to the call to IPersistFile::Save in
CDsoDocObject::SaveStorageToFile. This method returns success...but the Word
document is not created, which means that either the implementation in Word
2007 is wrong or that the example is wrong with regard to Word 2007 (I tried
other parameters and techniques using IPersistFile without success). The
quick solution is to comment out the IPersistFile code and just use the
StgCreateDocfile method of creating a Word document in the
CDsoDocObject::SaveStorageToFile method.

Thanks.

Regards,

Michael Cessna
 

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