Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / October 2005

Tip: Looking for answers? Try searching our database.

Inspector problem in ItemSend event

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Irfan Ahmed - 31 Oct 2005 06:49 GMT
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,
Michael Bauer - 31 Oct 2005 07:54 GMT
Am Mon, 31 Oct 2005 10:51:42 +0500 schrieb Irfan Ahmed:

Please show your code.

Signature

Viele Gruesse / Best regards
Michael Bauer - MVP Outlook

> Hi,
>
[quoted text clipped - 5 lines]
>
> Thanks,
Irfan Ahmed - 31 Oct 2005 09:07 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.