
Signature
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Hi,
The problem is the compose window is opened in MS Word Editor and when I
call
spInspector->Close(olDiscard) it return negative false code.
and if I uncheck the use of MS Word as editor it works fine.
Now I am trying the WordEditor object to close that window.
Can you please let me know how to make Word Document from this method?
Thanks,
> Am Mon, 31 Oct 2005 10:51:42 +0500 schrieb Irfan Ahmed:
>
[quoted text clipped - 9 lines]
> >
> > Thanks,
Michael Bauer - 31 Oct 2005 10:27 GMT
Am Mon, 31 Oct 2005 13:12:22 +0500 schrieb Irfan Ahmed:
The Word.Document object has a Close method, too. In VBA the Close method,
neither for the Inspector nor for the Document, has no return code at all
(expect if there´s an HRESULT for a no-error). But obviously you don´t use
VBA.

Signature
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
> Hi,
>
[quoted text clipped - 23 lines]
>>>
>>> Thanks,
Irfan Ahmed - 31 Oct 2005 11:39 GMT
I am not using VBA, I tried creating the ActiveDocument and calling the
Close function, it did close the window but main blank Word window remained
there.
Michael Bauer - 31 Oct 2005 11:56 GMT
Am Mon, 31 Oct 2005 15:46:11 +0500 schrieb Irfan Ahmed:
You can also close that by calling Word.Application.Quit. Please take a look
into the ObjectBrowser (F2). It lists all methods etc.

Signature
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
> I am not using VBA, I tried creating the ActiveDocument and calling the
> Close function, it did close the window but main blank Word window remained
> there.