Outlook 2007 Meeting Item Send Button

Status
Not open for further replies.
G

GR

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!
 
K

Ken Slovak - [MVP - Outlook]

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.

"GR" <gprourke@gmail.com> wrote in message

news:58d4bff6-bd98-437e-8213-27efd4978a58@d23g2000vbm.googlegroups.com...
> 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!
 
G

GR

On Oct 20, 10:06 am, "
<kenslo...@mvps.org> 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.

> >

> http://www.slovaktech.com

> "GR" <gprou...@gmail.com> wrote in message

> news:58d4bff6-bd98-437e-8213-27efd4978a58@d23g2000vbm.googlegroups.com...

>
> >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!-




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?
 
K

Ken Slovak - [MVP - Outlook]

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.

"GR" <gprourke@gmail.com> wrote in message

news:e028ccb3-cab4-4583-a736-cfc1327c0174@31g2000vbf.googlegroups.com...

<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?
 
G

GR

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, "
<kenslo...@mvps.org> 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 thetab
> 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.

> >

> http://www.slovaktech.com

> "GR" <gprou...@gmail.com> wrote in message

> news:e028ccb3-cab4-4583-a736-cfc1327c0174@31g2000vbf.googlegroups.com...
> <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?
 
K

Ken Slovak - [MVP - Outlook]

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.

"GR" <gprourke@gmail.com> wrote in message

news:8bb5c3d0-7f81-46ea-8396-814629e0fbf0@m11g2000vbl.googlegroups.com...

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.
 
G

GR

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, "
<kenslo...@mvps.org> 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.

> >

> http://www.slovaktech.com

> "GR" <gprou...@gmail.com> wrote in message

> news:8bb5c3d0-7f81-46ea-8396-814629e0fbf0@m11g2000vbl.googlegroups.com...

> 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.
 
K

Ken Slovak - [MVP - Outlook]

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?

"GR" <gprourke@gmail.com> wrote in message

news:3de484b7-5806-4b4e-9cb1-b5a2725d6fd2@m11g2000vbl.googlegroups.com...

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.
 
G

GR

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, "
<kenslo...@mvps.org> 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?

> >

> http://www.slovaktech.com

> "GR" <gprou...@gmail.com> wrote in message

> news:3de484b7-5806-4b4e-9cb1-b5a2725d6fd2@m11g2000vbl.googlegroups.com...

> 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.
 
K

Ken Slovak - [MVP - Outlook]

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().

"GR" <gprourke@gmail.com> wrote in message

news:e4aa0e73-a58d-4822-98be-9b2b05ff1c93@o36g2000vbl.googlegroups.com...

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.
 
G

GR

Good to get a "definitive" answer even if it is one I didn't want (or

agree with). Not sure what Microsoft's logic behind excluding that

button is.

Thanks for all your work.

On Oct 27, 10:39 am, "
<kenslo...@mvps.org> wrote:
> 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().

> >

> http://www.slovaktech.com

> "GR" <gprou...@gmail.com> wrote in message

> news:e4aa0e73-a58d-4822-98be-9b2b05ff1c93@o36g2000vbl.googlegroups.com...

> 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.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
C Outlook 2007 meeting invitations and Lotus Notes Using Outlook 0
I Outlook 2007: "Meeting" tab is missing Using Outlook 7
N Outlook 2007 - Permissions for Meeting invites? Using Outlook 1
B Scheduling a Meeting Resource (Room) with a conflict doesn't indicate any conflict on users calendar in Outlook 2007 Using Outlook 1
S Outlook 2007 crash linked to gdiplus.dll Using Outlook 0
S Outlook 2007 - Automatic purge fail Using Outlook 0
J outlook 2007 doesn't let me choose which .pst to search Using Outlook 2
D Outlook 2007 vs. Outlook 2010 -- ToDo Bar Using Outlook 0
D Outlook 2007 on 365 Using Outlook.com accounts in Outlook 2
S Macro for other actions - Outlook 2007 Outlook VBA and Custom Forms 23
S Verwendung von Outlook 2007 Using Outlook 0
A Arthur needs help with 2007 Outlook e-mail Using Outlook.com accounts in Outlook 3
M PST import from Outlook 2007 to 2010 - Address Book contacts all in 1 group Using Outlook 4
S outlook 2007 calendar search Using Outlook 6
B Migrate Outlook 2007 to Office 365 Using Outlook 3
X I have met my waterloo trying to resolve embedded graphics problem with outlook 2007 and now 2016 Using Outlook 1
R Outlook 2007 only loads some appointments Using Outlook 0
C Move Outlook 2007 to new PC with Outlook 365 Using Outlook 3
J Outlook 2007 Hide Messages Option not Available Using Outlook 2
S Outlook 2007 Calendar instant search problem. Windows 7 Using Outlook 4
S Outlook 2007 Calendar instant search problem. Windows 7 Using Outlook 0
B Server errors Outlook 2007 Using Outlook 1
S Reboot of frozen windows7 results in changed outlook 2007 settings Using Outlook 1
S Outlook 2007 printing wrong email address at top of page Using Outlook 8
M Configure outlook 2007 to accept digital signatures Using Outlook 2
D Outlook 2007 crashes when opening an email Using Outlook 2
R New chap saying hello and needing advice on Outlook 2007 thumbnails Using Outlook 3
icacream From Outlook 2007 to 2016 ! Using Outlook 9
vodkasoda Object could not be found Error in Outlook 2007 Outlook VBA and Custom Forms 5
S Outlook 2007: Address Cards allow entering text! Why? Using Outlook 3
S View Appointment in Text Wrap in Outlook 2007 Month Calendar View Using Outlook 0
L Outlook 2007 Separate the Send/Receive functions Using Outlook 2
M Outlook 2007 Contacts Glitch: Creating a new email Using Outlook 1
C Move from Outlook 2007 Enterprise (MOE) to Outlook Pro plus 2007 Using Outlook 1
J reinstalling Outlook 2007 asking for user name & password Using Outlook 14
P outlook addin unloaded in office 2007 Using Outlook 0
B Fonts in Outlook 2007 Using Outlook 4
R Add Exchange Account to existing POP3 Outlook 2007 Profile Using Outlook 0
C out of space in file group Outlook 2007 Using Outlook 2
A Moving archived contents in Outlook 2007 back into working folders Using Outlook 0
P Outlook 2007 Email Categorization using VBA Outlook VBA and Custom Forms 1
M Unable to Configure Gmail Account in Outlook 2007 Using Outlook 1
R Outlook 2007 or 2010 - Lock Down Functionality Outlook VBA and Custom Forms 3
S Outlook 2007, windows 10 Font size Using Outlook 1
Diane Poremsky Manually create a POP3 account in Outlook 2007 New Slipstick.com Articles 0
J Can Click to Drag Custom Form Field But Cannot Drop When Designing in Outlook 2007 Outlook VBA and Custom Forms 2
L Outlook 2007 Font Using Outlook 3
J Outlook 2007 connector and Windows 10 Using Outlook 3
R Outlook 2007 - Shared Accounts and Resources without Exchange Server Using Outlook 0
L Outlook 2007 - Macro Re Search Using Outlook 16

Similar threads

Top