C
Chris Cooper
My program has created an RTF document in a temporary location, and I open
Word to allow the user to see the document. Problem is, if they make
changes and do a simple "File:Save", they save it with my silly temporary
file name, in my temporary directory (so I might delete it later). What I
want to do, is open the file in Word, but somehow tell Word to forget the
file it loaded it from, so if the user says "File:Save" (and they very well
might not) Word prompts them for a file name.
One way I thought of (but I'm not quite sure how to do) - select the entire
document, paste it into an empty document, and then close the original
document.
I'm programming this via COM from C++, but as long as I understand how to do
it in any language, I can figure out how to do that via COM.
Thanks!
Chris
Word to allow the user to see the document. Problem is, if they make
changes and do a simple "File:Save", they save it with my silly temporary
file name, in my temporary directory (so I might delete it later). What I
want to do, is open the file in Word, but somehow tell Word to forget the
file it loaded it from, so if the user says "File:Save" (and they very well
might not) Word prompts them for a file name.
One way I thought of (but I'm not quite sure how to do) - select the entire
document, paste it into an empty document, and then close the original
document.
I'm programming this via COM from C++, but as long as I understand how to do
it in any language, I can figure out how to do that via COM.
Thanks!
Chris