![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |