How open file, force user to save as new name?

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
 
H

Helmut Weber

Hi Chris
how about write protecting the file?
Greetings from Bavaria, Germany
Helmut Weber
 

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