Inspector problem in ItemSend event

I

Irfan Ahmed

Hi,

I am initializing an object of Inspector in ItemSend and doing some
processing in that event. If I bypass my line code after initializing the
Inspector the compose window doesn't close and it remains there when Send
button is clicked.
The Close method returns false value.

Thanks,
 
M

Michael Bauer

Am Mon, 31 Oct 2005 10:51:42 +0500 schrieb Irfan Ahmed:

Please show your code.
 
I

Irfan Ahmed

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,
 
M

Michael Bauer

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.
 
I

Irfan Ahmed

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.
 
M

Michael Bauer

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.
 

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