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

Outlook 2007 Meeting Item Send Button



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 19th 09, 10:29 PM posted to microsoft.public.outlook.program_addins
GR[_2_]
external usenet poster
 
Posts: 8
Default Outlook 2007 Meeting Item Send Button

I am not having any luck capturing the event when a user presses the
large size "Send" button an a meeting form. I get the event for the
menu "Send" command, but not the button.

I am assuming that it is probably poorly formed XML string I am using
in the IRibbonExtensibility_GetCustomUI function. I have played around
with it a bunch but noting seems to work. This is the latest attemp of
what I was using:


"customUI xmlns=""http://
schemas.microsoft.com/office/2006/01/customui""" & _
"ribbon" & _
"tabs" & _
"tab idMso=""TabHome""" & _
"group idMso=""Send""" & _
"button idMso=""SendDefault""
onAction=""SendButton_Action"" /" & _
"/group" & _
"/tab" & _
"/tabs" & _
"/ribbon" & _
"/customUI"


Does anyone have an example XML string that captures that "large
button" on the actual form?

Thanks!
Ads
  #2  
Old October 20th 09, 03:06 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook 2007 Meeting Item Send Button

You're supplying the XML when GetCustomUI() calls for
"Microsoft.Outlook.MeetingRequest.Send"?

Tab idMSO = "TabNewMailMessage"
Group idMSO = "GroupSend"
Control idMSO = "SendDefault"

That's for a meeting request.

You can download the schemas for all the ribbons in Office 2007 from the
Office Developer site at MSDN.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"GR" wrote in message
...
I am not having any luck capturing the event when a user presses the
large size "Send" button an a meeting form. I get the event for the
menu "Send" command, but not the button.

I am assuming that it is probably poorly formed XML string I am using
in the IRibbonExtensibility_GetCustomUI function. I have played around
with it a bunch but noting seems to work. This is the latest attemp of
what I was using:


"customUI xmlns=""http://
schemas.microsoft.com/office/2006/01/customui""" & _
"ribbon" & _
"tabs" & _
"tab idMso=""TabHome""" & _
"group idMso=""Send""" & _
"button idMso=""SendDefault""
onAction=""SendButton_Action"" /" & _
"/group" & _
"/tab" & _
"/tabs" & _
"/ribbon" & _
"/customUI"


Does anyone have an example XML string that captures that "large
button" on the actual form?

Thanks!


  #3  
Old October 20th 09, 06:31 PM posted to microsoft.public.outlook.program_addins
GR[_2_]
external usenet poster
 
Posts: 8
Default Outlook 2007 Meeting Item Send Button

On Oct 20, 10:06*am, "Ken Slovak - [MVP - Outlook]"
wrote:
You're supplying the XML when GetCustomUI() calls for
"Microsoft.Outlook.MeetingRequest.Send"?

Tab idMSO = "TabNewMailMessage"
Group idMSO = "GroupSend"
Control idMSO = "SendDefault"

That's for a meeting request.

You can download the schemas for all the ribbons in Office 2007 from the
Office Developer site at MSDN.

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.http://www.slovaktech.com/products.htm

"GR" wrote in message

...



I am not having any luck capturing the event when a user presses the
large size "Send" button an a meeting form. I get the event for the
menu "Send" command, but not the button.


I am assuming that it is probably poorly formed XML string I am using
in the IRibbonExtensibility_GetCustomUI function. I have played around
with it a bunch but noting seems to work. This is the latest attemp of
what I was using:


* * * * * * * * * * * *"customUI xmlns=""http://
schemas.microsoft.com/office/2006/01/customui""" & _
* * * * * * * * * * * *"ribbon" & _
* * * * * * * * * * * *"tabs" & _
* * * * * * * * * * * *"tab idMso=""TabHome""" & _
* * * * * * * * * * * *"group idMso=""Send""" & _
* * * * * * * * * * * *"button idMso=""SendDefault""
onAction=""SendButton_Action"" /" & _
* * * * * * * * * * * *"/group" & _
* * * * * * * * * * * *"/tab" & _
* * * * * * * * * * * *"/tabs" & _
* * * * * * * * * * * *"/ribbon" & _
* * * * * * * * * * * *"/customUI"


Does anyone have an example XML string that captures that "large
button" on the actual form?


Thanks!- Hide quoted text -


- Show quoted text -



Actually, I am supplying the XML when GetCustomUI() calls for
"Microsoft.Outlook.Appointment". My custom form is based on the
appointment form. The code for this is getting called, however I don't
think I am using the correct IDMso's for the tab/group/control.

Any idea for this?
  #4  
Old October 20th 09, 07:27 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook 2007 Meeting Item Send Button

There is no Send button on an Appointment form by default, you'd have to
make it visible and enabled. Try using idMSO = "TabAppointment" for the tab
idMSO in an appointment item. The group and control should have the same
idMSO values you're using.

And download that XML schemas download from the developer Web site.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"GR" wrote in message
...
snip

Actually, I am supplying the XML when GetCustomUI() calls for
"Microsoft.Outlook.Appointment". My custom form is based on the
appointment form. The code for this is getting called, however I don't
think I am using the correct IDMso's for the tab/group/control.

Any idea for this?

  #5  
Old October 20th 09, 08:26 PM posted to microsoft.public.outlook.program_addins
GR[_2_]
external usenet poster
 
Posts: 8
Default Outlook 2007 Meeting Item Send Button


Hi Ken,
Thanks for the quick reply. I have downloaded the schemas but am not
seeing what I need there (or at least not getting it :-).

I have tried setting the idMSO="TabAppointment" as suggested but I
receive this eror message:

" controls in a built-in group cannot be modified"

when the XML loads.


Thanks.





On Oct 20, 2:27*pm, "Ken Slovak - [MVP - Outlook]"
wrote:
There is no Send button on an Appointment form by default, you'd have to
make it visible and enabled. Try using idMSO = "TabAppointment" for the tab
idMSO in an appointment item. The group and control should have the same
idMSO values you're using.

And download that XML schemas download from the developer Web site.

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.http://www.slovaktech.com/products.htm

"GR" wrote in message

...
snip

Actually, I am supplying the XML when GetCustomUI() calls for
"Microsoft.Outlook.Appointment". My custom form is based on the
appointment form. The code for this is getting called, however I don't
think I am using the correct IDMso's for the tab/group/control.

Any idea for this?


  #6  
Old October 20th 09, 09:09 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook 2007 Meeting Item Send Button

So what does your XML look like now?

It should have something like this in it for repurposing that control:

customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
commands
command idMso="SendDefault" onAction="SendButton_Action"/
/commands
/customUI

Sorry I missed that before, that you were repurposing that control.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"GR" wrote in message
...

Hi Ken,
Thanks for the quick reply. I have downloaded the schemas but am not
seeing what I need there (or at least not getting it :-).

I have tried setting the idMSO="TabAppointment" as suggested but I
receive this eror message:

" controls in a built-in group cannot be modified"

when the XML loads.


Thanks.


  #7  
Old October 21st 09, 02:37 PM posted to microsoft.public.outlook.program_addins
GR[_2_]
external usenet poster
 
Posts: 8
Default Outlook 2007 Meeting Item Send Button


Here are the XML strings and their results that I've tried without
success:

#1

customUI xmlns="http://schemas.microsoft.com/office/2006/01/
customui"
commands
command idMso="SendDefault" onAction="SendButton_Action" /
/commands
/customUI

RESULT: My callback function ("SendButton_Action") never gets called
when pressing the large "Send" button on the form nor when pressing
the "Office/Send" menu item.


#2 (using SendItem instead of SendDefault)

customUI xmlns="http://schemas.microsoft.com/office/2006/01/
customui"
commands
command idMso="SendItem" onAction="SendButton_Action" /
/commands
/customUI

RESULT: My callback function ("SendButton_Action") never gets called
when pressing the large "Send" button on the form. It DOES get called
when pressing the "Office/Send" menu item.


#3

customUI xmlns="http://schemas.microsoft.com/office/2006/01/
customui"
ribbon
tabs
tab idMso="TabAppointment"
group idMso="GroupSend"
button idMso="SendDefault"
onAction="SendButton_Action" /
/group
/tab
/tabs
/ribbon
/customUI

RESULT: When the code that sets the XML runs, Outlook pops up an error
box:

(when using SendDefault: button idMso="SendDefault"
onAction="SendButton_Action" /)

"Custom UI Runtime Error"
"controls in a built-in group cannot be modified:
SendDefault"


(when using SendItem: button idMso="SendItem"
onAction="SendButton_Action" /)

"Custom UI Runtime Error"
"controls in a built-in group cannot be modified:
SendItem"


So the code that sets the XML string always gets called but so far,
nothing seems to capture that large Send button on the form when you
create a Meeting request.


Thanks.




On Oct 20, 4:09*pm, "Ken Slovak - [MVP - Outlook]"
wrote:
So what does your XML look like now?

It should have something like this in it for repurposing that control:

customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
* * commands
* * * * command idMso="SendDefault" onAction="SendButton_Action"/
* * /commands
/customUI

Sorry I missed that before, that you were repurposing that control.

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.http://www.slovaktech.com/products.htm

"GR" wrote in message

...

Hi Ken,
Thanks for the quick reply. I have downloaded the schemas but am not
seeing what I need there (or at least not getting it :-).

I have tried setting the idMSO="TabAppointment" as suggested but I
receive this eror message:

" controls in a built-in group cannot be modified"

when the XML loads.

Thanks.


  #8  
Old October 21st 09, 03:36 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook 2007 Meeting Item Send Button

SendDefault and SendItem should cover both of those buttons.

The command tag is what should be used for repurposing a built-in control.
so that should be OK.

I just played with this on a Mail.Compose form. I was also able to handle
the idMso="SendItem" button but not the idMso="SendDefault" button. I'm
doing some more digging on this but so far it looks like that button is not
able to be repurposed.

Does an alternative of handling the item.Send() event work for you?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"GR" wrote in message
...

Here are the XML strings and their results that I've tried without
success:

#1

customUI xmlns="http://schemas.microsoft.com/office/2006/01/
customui"
commands
command idMso="SendDefault" onAction="SendButton_Action" /
/commands
/customUI

RESULT: My callback function ("SendButton_Action") never gets called
when pressing the large "Send" button on the form nor when pressing
the "Office/Send" menu item.


#2 (using SendItem instead of SendDefault)

customUI xmlns="http://schemas.microsoft.com/office/2006/01/
customui"
commands
command idMso="SendItem" onAction="SendButton_Action" /
/commands
/customUI

RESULT: My callback function ("SendButton_Action") never gets called
when pressing the large "Send" button on the form. It DOES get called
when pressing the "Office/Send" menu item.


#3

customUI xmlns="http://schemas.microsoft.com/office/2006/01/
customui"
ribbon
tabs
tab idMso="TabAppointment"
group idMso="GroupSend"
button idMso="SendDefault"
onAction="SendButton_Action" /
/group
/tab
/tabs
/ribbon
/customUI

RESULT: When the code that sets the XML runs, Outlook pops up an error
box:

(when using SendDefault: button idMso="SendDefault"
onAction="SendButton_Action" /)

"Custom UI Runtime Error"
"controls in a built-in group cannot be modified:
SendDefault"


(when using SendItem: button idMso="SendItem"
onAction="SendButton_Action" /)

"Custom UI Runtime Error"
"controls in a built-in group cannot be modified:
SendItem"


So the code that sets the XML string always gets called but so far,
nothing seems to capture that large Send button on the form when you
create a Meeting request.


Thanks.


  #9  
Old October 21st 09, 06:59 PM posted to microsoft.public.outlook.program_addins
GR[_2_]
external usenet poster
 
Posts: 8
Default Outlook 2007 Meeting Item Send Button


Hi Ken,

Thanks for looking at this. I'm glad it's not just me who sees this!

I have been playing with using the Item.Send() event in the meanwhile.
I think I might be able to get away with using this although it is
nowhere as efficient. I am having to write a lot more code than if I
could just capture that button's event when pressed. One particular
problem I have is that in Outlook 2007 by the time the Item.Send()
event is called, an occurrence of a recurring meeting that was opened,
modified and has had its "Send" button pressed now has had it's
RecurrenceState changed from "occurrence" to"exception" which was
messing up how I work with this item further downstream. It looks like
I can check this ahead of time though in the Item.Write() event which
comes first and it still is representative of the RecurrenceState of
the item when the user first opened it.

I really would like to be able to intercept that button though. Thanks
for all your help. Please keep me posted if you discover something.


On Oct 21, 10:36*am, "Ken Slovak - [MVP - Outlook]"
wrote:
SendDefault and SendItem should cover both of those buttons.

The command tag is what should be used for repurposing a built-in control.
so that should be OK.

I just played with this on a Mail.Compose form. I was also able to handle
the idMso="SendItem" button but not the idMso="SendDefault" button. I'm
doing some more digging on this but so far it looks like that button is not
able to be repurposed.

Does an alternative of handling the item.Send() event work for you?

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.http://www.slovaktech.com/products.htm

"GR" wrote in message

...

Here are the XML strings and their results that I've tried without
success:

#1

customUI xmlns="http://schemas.microsoft.com/office/2006/01/
customui"
commands
command idMso="SendDefault" onAction="SendButton_Action" /
/commands
/customUI

RESULT: My callback function ("SendButton_Action") never gets called
when pressing the large "Send" button on the form nor when pressing
the "Office/Send" menu item.

#2 (using SendItem instead of SendDefault)

customUI xmlns="http://schemas.microsoft.com/office/2006/01/
customui"
commands
command idMso="SendItem" onAction="SendButton_Action" /
/commands
/customUI

RESULT: My callback function ("SendButton_Action") never gets called
when pressing the large "Send" button on the form. It DOES get called
when pressing the "Office/Send" menu item.

#3

customUI xmlns="http://schemas.microsoft.com/office/2006/01/
customui"
* *ribbon
* * * tabs
* * * * *tab idMso="TabAppointment"
* * * * * * group idMso="GroupSend"
* * * * * * * *button idMso="SendDefault"
onAction="SendButton_Action" /
* * * * * * /group
* * * * */tab
* * * /tabs
* */ribbon
/customUI

RESULT: When the code that sets the XML runs, Outlook pops up an error
box:

(when using SendDefault: button idMso="SendDefault"
onAction="SendButton_Action" /)

* * * * * * * * * "Custom UI Runtime Error"
* * * * * * * * * "controls in a built-in group cannot be modified:
SendDefault"

(when using SendItem: button idMso="SendItem"
onAction="SendButton_Action" /)

* * * * * * * * * "Custom UI Runtime Error"
* * * * * * * * * "controls in a built-in group cannot be modified:
SendItem"

So the code that sets the XML string always gets called but so far,
nothing seems to capture that large Send button on the form when you
create a Meeting request.

Thanks.


  #10  
Old October 27th 09, 02:39 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook 2007 Meeting Item Send Button

I received confirmation from the owner of the Outlook object model that the
large Send button cannot be repurposed. He also confirmed the best
workaround would be to handle item.Send().

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"GR" wrote in message
...

Hi Ken,

Thanks for looking at this. I'm glad it's not just me who sees this!

I have been playing with using the Item.Send() event in the meanwhile.
I think I might be able to get away with using this although it is
nowhere as efficient. I am having to write a lot more code than if I
could just capture that button's event when pressed. One particular
problem I have is that in Outlook 2007 by the time the Item.Send()
event is called, an occurrence of a recurring meeting that was opened,
modified and has had its "Send" button pressed now has had it's
RecurrenceState changed from "occurrence" to"exception" which was
messing up how I work with this item further downstream. It looks like
I can check this ahead of time though in the Item.Write() event which
comes first and it still is representative of the RecurrenceState of
the item when the user first opened it.

I really would like to be able to intercept that button though. Thanks
for all your help. Please keep me posted if you discover something.

 




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 to hide/disable send button in Outlook 2007 jubergolandaj Outlook - Using Forms 2 August 21st 09 05:01 PM
How to hide/disable send button in Outlook 2007 jubergolandaj Outlook and VBA 1 August 11th 09 03:11 PM
How to hide/disable send button in Outlook 2007 jubergolandaj Outlook - Using Forms 1 August 11th 09 03:09 PM
Outlook 2007 SEND button behavior Burton Roberts Outlook - General Queries 1 May 10th 07 03:19 PM
send open mail item to specific printer from button Susan Outlook and VBA 0 June 2nd 06 06:33 PM


All times are GMT +1. The time now is 08:56 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.