A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - General Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to attach "Send To" Inspector?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 9th 06, 03:24 PM posted to microsoft.public.outlook,microsoft.public.platformsdk.mapi
baryon
external usenet poster
 
Posts: 2
Default How to attach "Send To" Inspector?

Hi,
if I started using "Send To|Mail Recipient" of Explore, An
OnApplicationStart event can be attached, because Outlook wasn't
running, have no Explorer. there are a new message already open on my
desktop. I want get at the Inspector and handle it.
I tried some code in OnApplicationStart like
Outlook::_InspectorPtr pInspector = _pApplication-ActiveInspector();
then failed, pInspector == NULL
and _pApplication-Inspectors-Count == 0;

How can I attach "Send To" Inspector?

thank you

Baryon

Ads
  #2  
Old June 9th 06, 03:35 PM posted to microsoft.public.outlook,microsoft.public.platformsdk.mapi
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to attach "Send To" Inspector?

You can't officially. There is no NewInspector event and no ActiveInspector.
For Outlook 2002 and later the item is added to the Inspectors collection,
so you could do something like running a timer and checking the Inspectors
collection for a new Inspector that you didn't know about from NewIspector.

The best place to ask Outlook programming questions is in an Outlook
programming newsgroup, BTW, not here.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"baryon" wrote in message
ps.com...
Hi,
if I started using "Send To|Mail Recipient" of Explore, An
OnApplicationStart event can be attached, because Outlook wasn't
running, have no Explorer. there are a new message already open on my
desktop. I want get at the Inspector and handle it.
I tried some code in OnApplicationStart like
Outlook::_InspectorPtr pInspector = _pApplication-ActiveInspector();
then failed, pInspector == NULL
and _pApplication-Inspectors-Count == 0;

How can I attach "Send To" Inspector?

thank you

Baryon


  #3  
Old June 9th 06, 03:38 PM posted to microsoft.public.outlook,microsoft.public.platformsdk.mapi
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How to attach "Send To" Inspector?

You can't. Messages created with Simple MAPI (which is what Send To uses) don't trigger a NewInspector event or add to the Inspectors collection, by design.

Consider replacing the Send To shortcut with a shortcut to invoke Outlook.exe and the /a switch.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"baryon" wrote in message ps.com...
Hi,
if I started using "Send To|Mail Recipient" of Explore, An
OnApplicationStart event can be attached, because Outlook wasn't
running, have no Explorer. there are a new message already open on my
desktop. I want get at the Inspector and handle it.
I tried some code in OnApplicationStart like
Outlook::_InspectorPtr pInspector = _pApplication-ActiveInspector();
then failed, pInspector == NULL
and _pApplication-Inspectors-Count == 0;

How can I attach "Send To" Inspector?

thank you

Baryon

  #4  
Old June 9th 06, 04:10 PM posted to microsoft.public.outlook,microsoft.public.platformsdk.mapi
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to attach "Send To" Inspector?

Actually, Sue, they do add to the Inspectors collection for Outlook 2002 and
later. No NewInspector event however. I've hooked Simple MAPI Inspectors by
iterating the Inspectors collection using timer intervals, it works just
fine.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Sue Mosher [MVP-Outlook]" wrote in message
...
You can't. Messages created with Simple MAPI (which is what Send To uses)
don't trigger a NewInspector event or add to the Inspectors collection, by
design.

Consider replacing the Send To shortcut with a shortcut to invoke
Outlook.exe and the /a switch.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


  #5  
Old June 9th 06, 04:16 PM posted to microsoft.public.outlook,microsoft.public.platformsdk.mapi
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How to attach "Send To" Inspector?

Makes sense. Thanks!

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Ken Slovak - [MVP - Outlook]" wrote in message ...
Actually, Sue, they do add to the Inspectors collection for Outlook 2002 and
later. No NewInspector event however. I've hooked Simple MAPI Inspectors by
iterating the Inspectors collection using timer intervals, it works just
fine.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Sue Mosher [MVP-Outlook]" wrote in message
...
You can't. Messages created with Simple MAPI (which is what Send To uses)
don't trigger a NewInspector event or add to the Inspectors collection, by
design.

Consider replacing the Send To shortcut with a shortcut to invoke
Outlook.exe and the /a switch.



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I get rid of the Adobe "attach as Adobe PDF" add in? ljt1227 Outlook - Installation 2 April 14th 06 07:47 PM
Outlook 2002 "reply" and reply all with original attach ????? bma19 Outlook - Installation 1 April 7th 06 09:41 PM
when using a Excel csv file the show time "free" not "busy" greg Outlook - Calandaring 1 March 27th 06 06:24 AM
Outlook express address book, "tools", "option" feature missing f. Brad Outlook - Using Contacts 3 March 12th 06 12:46 AM
Only when i forward emails with attachements "550 relaying mail to" [domain] "is not allowed" Alchemy Outlook - General Queries 4 March 9th 06 12:47 AM


All times are GMT +1. The time now is 01:14 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.