Michael,
This is a Word / Excel notification dialogue. It will appear whenever you
try to open a locked file. This is by design, even if you try to open a
locked file in a Word / Excel instance, which is not embedded in any
container, it will display the same notification. As DSOFramer is just
hosting the Office application, it can not suppress this dialogue or take
control of this dialogue. However, you can dispose this dialogue box by
sending keys / events to this dialog box.
Please refer to the following article for more information
How To Dismiss a Dialog Box Displayed by an Office Application with Visual
Basic
http://support.microsoft.com/kb/259971/EN-US/
Regards,
Uday Takbhate [MSFT]
Microsoft Developer Support
--------------------
>From: "Mike Loux" <mike.loux@gmail.com>
>Newsgroups: microsoft.public.dotnet.framework.interop
[quoted text clipped - 9 lines]
>Content-Type: text/plain; charset="iso-8859-1"
>X-Trace: posting.google.com 1126876582 18447 127.0.0.1 (16 Sep 2005
13:16:22 GMT)
>X-Complaints-To: groups-abuse@google.com
>NNTP-Posting-Date: Fri, 16 Sep 2005 13:16:22 +0000 (UTC)
>User-Agent: G2/0.2
>X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8b4) Gecko/20050908 Firefox/1.4,gzip(gfe),gzip(gfe)
>Complaints-To: groups-abuse@google.com
>Injection-Info: g14g2000cwa.googlegroups.com; posting-host=24.97.250.4;
> posting-account=CaSj6Q0AAABXqhUyMw8Kz7fvmDqCOYHz
>Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onli
ne.de!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.gigan
ews.com!postnews.google.com!g14g2000cwa.googlegroups.com!not-for-mail
>Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.framework.interop:9667
>X-Tomcat-NG: microsoft.public.dotnet.framework.interop
[quoted text clipped - 25 lines]
>Slainte!
>-Mike
Mike Loux - 19 Sep 2005 14:43 GMT
Ahh, but if you specifically open the file as Read-Only in Word or
Excel, it will NOT display the dialog, even when the file has been
previously locked for editing by another user/process.
The DsoFramer control has a ReadOnly parameter in its Open method,
which does indeed open the file in Read Only mode (not locking it for
editing), but the dialog pops up anyway. So I KNOW there's a way
around this.
Slainte!
-Mike
Uday Takbhate [MSFT] - 20 Sep 2005 20:06 GMT
Mike,
Let me check with the DSOFramer source.
I'll let you know as soon as I get something!
Uday Takbhate [MSFT]
Microsoft Developer Support
--------------------
>From: "Mike Loux" <mike.loux@gmail.com>
>Newsgroups: microsoft.public.dotnet.framework.interop
[quoted text clipped - 10 lines]
>Content-Type: text/plain; charset="iso-8859-1"
>X-Trace: posting.google.com 1127137440 5059 127.0.0.1 (19 Sep 2005
13:44:00 GMT)
>X-Complaints-To: groups-abuse@google.com
>NNTP-Posting-Date: Mon, 19 Sep 2005 13:44:00 +0000 (UTC)
>In-Reply-To: <B2kKFqNvFHA.1364@TK2MSFTNGXA01.phx.gbl>
>User-Agent: G2/0.2
>X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8b4) Gecko/20050908 Firefox/1.4,gzip(gfe),gzip(gfe)
>Complaints-To: groups-abuse@google.com
>Injection-Info: g44g2000cwa.googlegroups.com; posting-host=24.97.250.4;
> posting-account=CaSj6Q0AAABXqhUyMw8Kz7fvmDqCOYHz
>Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onli
ne.de!news.glorb.com!postnews.google.com!g44g2000cwa.googlegroups.com!not-fo
r-mail
>Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.framework.interop:9703
>X-Tomcat-NG: microsoft.public.dotnet.framework.interop
[quoted text clipped - 10 lines]
>Slainte!
>-Mike
Mike Loux - 20 Sep 2005 20:53 GMT
Cool beans. Thanks for your help!