View Single Post
  #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.


Ads