Saving Word documents in temp files

D

David

I am working on an MS Word add-in written in C# using IDTExtensibility2.

I would like to save a copy of the ActiveDocument at certain times. I would
like for this saving to be similar to Word's auto-recover saving where it is
completely transparent to the user. This means that when a new document is
saved by my code the filename does not appear in the title bar and the user
is prompted to save changes to a new file (not the one I saved to). Also,
when my code saves from an existing document, the user is still prompted to
save their changes.

I tried to save using Document.SaveAs(), but it is just as if the user saves
the document. Is there another function that can do this save for me?

One other idea I've had is to make a copy of the Document object, and then
save that Document to a file. I've not found any way to copy the Document,
other than the shallow object.MemberwiseClone.

Thanks for the help.
David
 

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