Can't programmatically save new document with form protection on?

K

klehner

I'm programmatically (in C++) creating and populating a Word document from a
template that contains forms and XML. In my template I select "Protect
Document"/"Editing Restrictions"/"Filling in forms" and click the checkbox,
start enforcing protection and save the template. With the checkbox checked,
the document is not saved to disk, I catch an exception, and the Word
application is minimized (yet the document "Document1" is there and
protected!); I can then save it correctly. With the checkbox unchecked (no
protection), the document is saved to disk, is named correctly, and the Word
application remains visible.

Any clue what might be happening here?

Ken Lehner
 

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