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 » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Reading Pane Context Menu VBA Help



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 4th 06, 01:42 AM posted to microsoft.public.outlook.program_addins
Paul
external usenet poster
 
Posts: 3
Default Reading Pane Context Menu VBA Help

I'm an experienced VBA Excel programmer, but am new to Outlook. I need
some help adding a custom menu item to one of Outlook's pop up context
menus.

I hope I can word the appropriate question here.

I have Outlook 2003 installed locally. It uses our corporate network
mail servers. Our administrators have set up the Outlook reading pane
to display a "windows messenger" icon next to the sender's name and
email address at the top of the pane. If you click the icon or right
click the senders name, a pop up menu appears showing several of the
senders properties from our corporate ldap source (e.g., name, business
phone, location, etc.). In addition Outlook provides other menu items
in the pop up like: additional actions, create rule, lookup outlook
contact, and outlook properties.

I would like to insert a custom menu item in this pop up. It would use
the senders name to essentially follow a hyperlink to a web page.

Could you outline how I might programmatically insert this custom menu
item (couldn't find the name/id for the pop up). Does Outlook have a
FollowHyperlink method which would bring up the web page?

Thanks Very Much,
Paul Katz

  #2  
Old August 4th 06, 08:06 AM posted to microsoft.public.outlook.program_addins
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Reading Pane Context Menu VBA Help

Am 3 Aug 2006 16:42:22 -0700 schrieb Paul:

In Outlook 2007 you don´t have full control over the contex menu. Here´s a
sample how you might work around it:
http://www.outlookcode.com/threads.a...essageid=18141

OL does not have a FollowHyperlink method. You could use the Shell instead:

Private Declare Function ShellExecute Lib "shell32.dll" Alias _
"ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, _
ByVal lpFile As String, ByVal lpParameters As String, _
ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

Public Sub ShowWebSite(Site As String)
ShellExecute 0, "open", Site, vbNullString, vbNullString, 1
End Sub

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


I'm an experienced VBA Excel programmer, but am new to Outlook. I need
some help adding a custom menu item to one of Outlook's pop up context
menus.

I hope I can word the appropriate question here.

I have Outlook 2003 installed locally. It uses our corporate network
mail servers. Our administrators have set up the Outlook reading pane
to display a "windows messenger" icon next to the sender's name and
email address at the top of the pane. If you click the icon or right
click the senders name, a pop up menu appears showing several of the
senders properties from our corporate ldap source (e.g., name, business
phone, location, etc.). In addition Outlook provides other menu items
in the pop up like: additional actions, create rule, lookup outlook
contact, and outlook properties.

I would like to insert a custom menu item in this pop up. It would use
the senders name to essentially follow a hyperlink to a web page.

Could you outline how I might programmatically insert this custom menu
item (couldn't find the name/id for the pop up). Does Outlook have a
FollowHyperlink method which would bring up the web page?

Thanks Very Much,
Paul Katz

  #3  
Old August 4th 06, 11:16 AM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 5
Default Reading Pane Context Menu VBA Help


Better to see some more info about the Persona Menu & Smart Tags. You
can add custom menu items only to "Additional Actions" submenu. Here is
an usefull link to start with:

http://msdn.microsoft.com/library/de...HV01082081.asp

Good luck

Paul wrote:
I'm an experienced VBA Excel programmer, but am new to Outlook. I need
some help adding a custom menu item to one of Outlook's pop up context
menus.

I hope I can word the appropriate question here.

I have Outlook 2003 installed locally. It uses our corporate network
mail servers. Our administrators have set up the Outlook reading pane
to display a "windows messenger" icon next to the sender's name and
email address at the top of the pane. If you click the icon or right
click the senders name, a pop up menu appears showing several of the
senders properties from our corporate ldap source (e.g., name, business
phone, location, etc.). In addition Outlook provides other menu items
in the pop up like: additional actions, create rule, lookup outlook
contact, and outlook properties.

I would like to insert a custom menu item in this pop up. It would use
the senders name to essentially follow a hyperlink to a web page.

Could you outline how I might programmatically insert this custom menu
item (couldn't find the name/id for the pop up). Does Outlook have a
FollowHyperlink method which would bring up the web page?

Thanks Very Much,
Paul Katz


  #4  
Old August 4th 06, 07:19 PM posted to microsoft.public.outlook.program_addins
Paul
external usenet poster
 
Posts: 3
Default Reading Pane Context Menu VBA Help

Thanks - I'd settle for adding to the "Additional Actions" persona
submenu. Could you point me to an example or two? The MS link didn't
really say too much.

wrote:
Better to see some more info about the Persona Menu & Smart Tags. You
can add custom menu items only to "Additional Actions" submenu. Here is
an usefull link to start with:

http://msdn.microsoft.com/library/de...HV01082081.asp

Good luck

Paul wrote:
I'm an experienced VBA Excel programmer, but am new to Outlook. I need
some help adding a custom menu item to one of Outlook's pop up context
menus.

I hope I can word the appropriate question here.

I have Outlook 2003 installed locally. It uses our corporate network
mail servers. Our administrators have set up the Outlook reading pane
to display a "windows messenger" icon next to the sender's name and
email address at the top of the pane. If you click the icon or right
click the senders name, a pop up menu appears showing several of the
senders properties from our corporate ldap source (e.g., name, business
phone, location, etc.). In addition Outlook provides other menu items
in the pop up like: additional actions, create rule, lookup outlook
contact, and outlook properties.

I would like to insert a custom menu item in this pop up. It would use
the senders name to essentially follow a hyperlink to a web page.

Could you outline how I might programmatically insert this custom menu
item (couldn't find the name/id for the pop up). Does Outlook have a
FollowHyperlink method which would bring up the web page?

Thanks Very Much,
Paul Katz


  #5  
Old August 5th 06, 04:20 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 5
Default Reading Pane Context Menu VBA Help

Hi, Paul

As You could read in MSDN article I've mentioned earlier, Smart Tag You
need to use to add a custom menu item to "Additional Actions" submenu
is #PersonName (urn:schemas-microsoft-comffice:smarttags#PersonName).
So, You have to expand existing system Smart Tag with Your custom
actions. As far as I've understood from Your the very first post - you
need to create a menu item, which can take user to some web-page,
depending on his name. There are 2 possible ways to implement this
stuff: expand Smart Tag with special-formatted XML or with the help of
Smart Tag DLL, which You'll need to implement using C#, VB.NET
languages or unmanaged VC++ with ATL (if You're against .Net technology
at all ). (From my experience, I can tell you only that using .Net
will be the best decision, because Smart Tag DLLs implemented with
unmanaged VC++ have a little bit strange behaviour in the latest Office
applications). The decision which way to use (XML or DLL) depends on
what type of target URL You need and how it depends on contact's name.

The following links contains enough information about Smart Tag XML &
DLL developing:

http://msdn.microsoft.com/library/de...ce06072001.asp

http://search.msdn.microsoft.com/sea...+Tag+Solutions

Good luck

If You'll have any problems with implementation just let me know

Paul wrote:
Thanks - I'd settle for adding to the "Additional Actions" persona
submenu. Could you point me to an example or two? The MS link didn't
really say too much.

wrote:
Better to see some more info about the Persona Menu & Smart Tags. You
can add custom menu items only to "Additional Actions" submenu. Here is
an usefull link to start with:

http://msdn.microsoft.com/library/de...HV01082081.asp

Good luck

Paul wrote:
I'm an experienced VBA Excel programmer, but am new to Outlook. I need
some help adding a custom menu item to one of Outlook's pop up context
menus.

I hope I can word the appropriate question here.

I have Outlook 2003 installed locally. It uses our corporate network
mail servers. Our administrators have set up the Outlook reading pane
to display a "windows messenger" icon next to the sender's name and
email address at the top of the pane. If you click the icon or right
click the senders name, a pop up menu appears showing several of the
senders properties from our corporate ldap source (e.g., name, business
phone, location, etc.). In addition Outlook provides other menu items
in the pop up like: additional actions, create rule, lookup outlook
contact, and outlook properties.

I would like to insert a custom menu item in this pop up. It would use
the senders name to essentially follow a hyperlink to a web page.

Could you outline how I might programmatically insert this custom menu
item (couldn't find the name/id for the pop up). Does Outlook have a
FollowHyperlink method which would bring up the web page?

Thanks Very Much,
Paul Katz


  #6  
Old August 15th 06, 10:11 PM posted to microsoft.public.outlook.program_addins
Paul
external usenet poster
 
Posts: 3
Default Reading Pane Context Menu VBA Help

Thanks so much for the info.

I was able to add a custom action to #PersonName via XML, and submit a
web query of the form
http://directory.corporate.com/search?name={TEXT}

Two more questions:
1. does the #PersonName smart tag expose any other fields besides
{TEXT}? (e.g., like {UID} for a unique user id),
2. can I open a url in it's own window? Right now the url comes up in
the first available browser currently opened.

Thanks again,
Paul

wrote:
Hi, Paul

As You could read in MSDN article I've mentioned earlier, Smart Tag You
need to use to add a custom menu item to "Additional Actions" submenu
is #PersonName (urn:schemas-microsoft-comffice:smarttags#PersonName).
So, You have to expand existing system Smart Tag with Your custom
actions. As far as I've understood from Your the very first post - you
need to create a menu item, which can take user to some web-page,
depending on his name. There are 2 possible ways to implement this
stuff: expand Smart Tag with special-formatted XML or with the help of
Smart Tag DLL, which You'll need to implement using C#, VB.NET
languages or unmanaged VC++ with ATL (if You're against .Net technology
at all ). (From my experience, I can tell you only that using .Net
will be the best decision, because Smart Tag DLLs implemented with
unmanaged VC++ have a little bit strange behaviour in the latest Office
applications). The decision which way to use (XML or DLL) depends on
what type of target URL You need and how it depends on contact's name.

The following links contains enough information about Smart Tag XML &
DLL developing:

http://msdn.microsoft.com/library/de...ce06072001.asp

http://search.msdn.microsoft.com/sea...+Tag+Solutions

Good luck

If You'll have any problems with implementation just let me know

Paul wrote:
Thanks - I'd settle for adding to the "Additional Actions" persona
submenu. Could you point me to an example or two? The MS link didn't
really say too much.

wrote:
Better to see some more info about the Persona Menu & Smart Tags. You
can add custom menu items only to "Additional Actions" submenu. Here is
an usefull link to start with:

http://msdn.microsoft.com/library/de...HV01082081.asp

Good luck

Paul wrote:
I'm an experienced VBA Excel programmer, but am new to Outlook. I need
some help adding a custom menu item to one of Outlook's pop up context
menus.

I hope I can word the appropriate question here.

I have Outlook 2003 installed locally. It uses our corporate network
mail servers. Our administrators have set up the Outlook reading pane
to display a "windows messenger" icon next to the sender's name and
email address at the top of the pane. If you click the icon or right
click the senders name, a pop up menu appears showing several of the
senders properties from our corporate ldap source (e.g., name, business
phone, location, etc.). In addition Outlook provides other menu items
in the pop up like: additional actions, create rule, lookup outlook
contact, and outlook properties.

I would like to insert a custom menu item in this pop up. It would use
the senders name to essentially follow a hyperlink to a web page.

Could you outline how I might programmatically insert this custom menu
item (couldn't find the name/id for the pop up). Does Outlook have a
FollowHyperlink method which would bring up the web page?

Thanks Very Much,
Paul Katz


  #7  
Old August 16th 06, 10:12 AM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 5
Default Reading Pane Context Menu VBA Help

Hi there, Paul

According to Smart Tag SDK Documentation, if You implement Your Smart
Tag via XML only next dynamic values are accessible for YOU:

{LCID}- an integer corresponding to the user's current user
interface language lcid.

{TEXT}- the smart tagged text from which the action was initiated.
Smart tag text is encoded for HTTP posting. This means that spaces are
converted to %20s, and so forth.

This is so, because XML allows to implement only the simpliest Smart
Tag Actions. If You want anything more difficult - implement Your Smart
Tag as DLL - this really opens the gate to the real world .

Paul wrote:
Thanks so much for the info.

I was able to add a custom action to #PersonName via XML, and submit a
web query of the form
http://directory.corporate.com/search?name={TEXT}

Two more questions:
1. does the #PersonName smart tag expose any other fields besides
{TEXT}? (e.g., like {UID} for a unique user id),
2. can I open a url in it's own window? Right now the url comes up in
the first available browser currently opened.

Thanks again,
Paul

wrote:
Hi, Paul

As You could read in MSDN article I've mentioned earlier, Smart Tag You
need to use to add a custom menu item to "Additional Actions" submenu
is #PersonName (urn:schemas-microsoft-comffice:smarttags#PersonName).
So, You have to expand existing system Smart Tag with Your custom
actions. As far as I've understood from Your the very first post - you
need to create a menu item, which can take user to some web-page,
depending on his name. There are 2 possible ways to implement this
stuff: expand Smart Tag with special-formatted XML or with the help of
Smart Tag DLL, which You'll need to implement using C#, VB.NET
languages or unmanaged VC++ with ATL (if You're against .Net technology
at all ). (From my experience, I can tell you only that using .Net
will be the best decision, because Smart Tag DLLs implemented with
unmanaged VC++ have a little bit strange behaviour in the latest Office
applications). The decision which way to use (XML or DLL) depends on
what type of target URL You need and how it depends on contact's name.

The following links contains enough information about Smart Tag XML &
DLL developing:

http://msdn.microsoft.com/library/de...ce06072001.asp

http://search.msdn.microsoft.com/sea...+Tag+Solutions

Good luck

If You'll have any problems with implementation just let me know

Paul wrote:
Thanks - I'd settle for adding to the "Additional Actions" persona
submenu. Could you point me to an example or two? The MS link didn't
really say too much.

wrote:
Better to see some more info about the Persona Menu & Smart Tags. You
can add custom menu items only to "Additional Actions" submenu. Here is
an usefull link to start with:

http://msdn.microsoft.com/library/de...HV01082081.asp

Good luck

Paul wrote:
I'm an experienced VBA Excel programmer, but am new to Outlook. I need
some help adding a custom menu item to one of Outlook's pop up context
menus.

I hope I can word the appropriate question here.

I have Outlook 2003 installed locally. It uses our corporate network
mail servers. Our administrators have set up the Outlook reading pane
to display a "windows messenger" icon next to the sender's name and
email address at the top of the pane. If you click the icon or right
click the senders name, a pop up menu appears showing several of the
senders properties from our corporate ldap source (e.g., name, business
phone, location, etc.). In addition Outlook provides other menu items
in the pop up like: additional actions, create rule, lookup outlook
contact, and outlook properties.

I would like to insert a custom menu item in this pop up. It would use
the senders name to essentially follow a hyperlink to a web page.

Could you outline how I might programmatically insert this custom menu
item (couldn't find the name/id for the pop up). Does Outlook have a
FollowHyperlink method which would bring up the web page?

Thanks Very Much,
Paul Katz


  #8  
Old August 21st 06, 09:40 AM posted to microsoft.public.outlook.program_addins
kedar
external usenet poster
 
Posts: 1
Default Your Help required abt context and Preview pane

HOW HAVE YOU obtained context menu of Preview/Reading pane
please paste some sample code that worked with you
i'm developing in vb.net and want to have my menuitem in context menu
of previewpane
so that right click on from,to ,attachement can give me my menuitem
added in context menu..

Paul wrote:
I'm an experienced VBA Excel programmer, but am new to Outlook. I need
some help adding a custom menu item to one of Outlook's pop up context
menus.

I hope I can word the appropriate question here.

I have Outlook 2003 installed locally. It uses our corporate network
mail servers. Our administrators have set up the Outlook reading pane
to display a "windows messenger" icon next to the sender's name and
email address at the top of the pane. If you click the icon or right
click the senders name, a pop up menu appears showing several of the
senders properties from our corporate ldap source (e.g., name, business
phone, location, etc.). In addition Outlook provides other menu items
in the pop up like: additional actions, create rule, lookup outlook
contact, and outlook properties.

I would like to insert a custom menu item in this pop up. It would use
the senders name to essentially follow a hyperlink to a web page.

Could you outline how I might programmatically insert this custom menu
item (couldn't find the name/id for the pop up). Does Outlook have a
FollowHyperlink method which would bring up the web page?

Thanks Very Much,
Paul Katz


  #9  
Old August 21st 06, 04:15 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 5
Default Your Help required abt context and Preview pane

Hi, Kedar!

I've e-mailed You one sample. Hope, it'll help


kedar wrote:
HOW HAVE YOU obtained context menu of Preview/Reading pane
please paste some sample code that worked with you
i'm developing in vb.net and want to have my menuitem in context menu
of previewpane
so that right click on from,to ,attachement can give me my menuitem
added in context menu..

Paul wrote:
I'm an experienced VBA Excel programmer, but am new to Outlook. I need
some help adding a custom menu item to one of Outlook's pop up context
menus.

I hope I can word the appropriate question here.

I have Outlook 2003 installed locally. It uses our corporate network
mail servers. Our administrators have set up the Outlook reading pane
to display a "windows messenger" icon next to the sender's name and
email address at the top of the pane. If you click the icon or right
click the senders name, a pop up menu appears showing several of the
senders properties from our corporate ldap source (e.g., name, business
phone, location, etc.). In addition Outlook provides other menu items
in the pop up like: additional actions, create rule, lookup outlook
contact, and outlook properties.

I would like to insert a custom menu item in this pop up. It would use
the senders name to essentially follow a hyperlink to a web page.

Could you outline how I might programmatically insert this custom menu
item (couldn't find the name/id for the pop up). Does Outlook have a
FollowHyperlink method which would bring up the web page?

Thanks Very Much,
Paul Katz


 




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
Add Contact context menu option Gene Chang Add-ins for Outlook 2 August 1st 06 04:31 PM
Searching contacts through e-mail address context menu Petr Outlook - Using Contacts 1 June 21st 06 10:08 PM
adding a context menu in Outlook donald Add-ins for Outlook 6 May 3rd 06 02:49 PM
How do I add a new option in the context menu(Outlook)? Outllok - context menus aad ins Outlook - Using Forms 5 March 16th 06 03:47 PM
Context Menu not present Mono Outlook Express 5 February 7th 06 07:22 PM


All times are GMT +1. The time now is 09:28 AM.


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.