Inspector problem in ItemSend event

  • Thread starter Thread starter Irfan Ahmed
  • Start date Start date
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,
 
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 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 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.
 
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.
 
Back
Top