Don't show this warning again during this session

Hello,

My database stores a MS word document on a notes document as an OLE document.

If word doc is open while notes doc is not in edit mode, there is a popup which says :

“This document is read-only. If you make any changes in the OLE object they cannot be saved because the document is read-only. Do you still want to open the OLE object ?”

There is a check button “Don’t show this warning again during this session”

How can I achieve this using script ?

Any hints welcome.

Subject: MS issue

You might want to ask your MS office support group. Perhaps there is a reg key that you poke to shut off this warning message.

Subject: The warning is from Notes not from MS Office

Subject: Read this

http://ansxs.com/help/help8_client.nsf/f4b82fbb75e942a6852566ac0037f284/e1cca8d7c60e019b8525728e00509a27?OpenDocument

Subject: Not applicable - still stuck

Sounds interesting.I tried this:

hdoc.Readonly = True

But, unhappily, ReadOnly property cannot be set, only read.

I also tried

hApp.RunReadOnly

But this is not applicable to the object, only to the ocx control, which I do not know how to use.

Subject: Acceptable solution found

I cannot get rid of this popup but I do the following.

The document is opened in edit mode and mode is switched to read right after.

So I do not have the popup unless in one condition:

t1: user1 opens doc in read/write mode

t2: doc is still opened by user1 and user2 opens doc in read mode.

If both user1 and user2 are accessing the same doc in read only mode, no one gets the message.