add a designed group into a existing inspector ribbon

  • Thread starter Thread starter khoick245
  • Start date Start date
K

khoick245

hi all. how to add a new group into Message ribbon of mail.compos
inspector? what should i do? I use c# and outlook 2007. thank al
 
You need to add the new group using ribbon XML that's submitted when the
GetCustomUI() callback is fired. You also will need to handle the callbacks
for your ribbon controls.

If you know nothing about this you need to go to the MSDN Office Developer
Web site and download sample applications for either shared or VSTO addins,
whichever you are using, and see how to proceed with your code and XML.

You should also download the XML schemas for the ribbons in Office 2007 from
the same Web site.
 
'Ken Slovak - [MVP - Outlook said:
;345953']You need to add the new group using ribbon XML that's submitte
when the
GetCustomUI() callback is fired. You also will need to handle th
callbacks
for your ribbon controls.

If you know nothing about this you need to go to the MSDN Offic
Developer
Web site and download sample applications for either shared or VST
addins,
whichever you are using, and see how to proceed with your code an
XML.

You should also download the XML schemas for the ribbons in Office 200
from
the same Web site.




"khoick245" (e-mail address removed) wrote in message

hi all. how to add a new group into Message ribbon of mail.compose
inspector? what should i do? I use c# and outlook 2007. thank all

hi Ken. thanks for your help. i think i did it. now i want to add ne
group into tab Message of mail.compose ribbon. what should i do??
 
The rule is you can create a new group in an existing tab, or create a new
tab, but you can't modify existing groups in an existing tab. So you can do
what you want.

Look at this XML snippet:

<ribbon>
<tabs>
<tab idMso="TabInsert">
<group id="myCustomGroup" insertAfterMso="GroupInclude"
getLabel="Ribbon_getLabel" getVisible="Ribbon_getVisible">

That's the type of XML you have to supply, in this case the XML was for a
new group in the Insert tab.
 
'Ken Slovak - [MVP - Outlook said:
;346084']The rule is you can create a new group in an existing tab, o
create a new
tab, but you can't modify existing groups in an existing tab. So yo
can do
what you want

Look at this XML snippet

ribbo
tab
tab idMso="TabInsert
group id="myCustomGroup" insertAfterMso="GroupInclude"
getLabel="Ribbon_getLabel" getVisible="Ribbon_getVisible

That's the type of XML you have to supply, in this case the XML was fo
a
new group in the Insert tab

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


"khoick245" (e-mail address removed) wrote in message
snip
hi Ken. thanks for your help. i think i did it. now i want to add ne
group into tab Message of mail.compose ribbon. what should i do??

hi Ken. i have some new problems. i added group into existing tab. O
this group, i created a gallery which has its xml structure
<gallery id="glrSymbolic" screentip="Select Symbolic" label="Selec
Symbolic" showImage="false"
<item id="__id1" label="%LastName%" /
<item id="__id2" label="%FirstName%" /
<item id="__id3" label="%UserName%" /
<item id="__id4" label="%Email%" /
</gallery
I want whenever i choice a item from gallery, the label will b
inserted into position of pointer in current mail compose( assume tha
i'm composing email at that time ). Can you give me some suggestions
thank you
 
Sorry, I've never worked with gallery controls in a ribbon, I can't help
with that. If it were me I'd do some googling on that to find samples I
could review.
 
'Ken Slovak - [MVP - Outlook said:
;346327']Sorry, I've never worked with gallery controls in a ribbon,
can't help
with that. If it were me I'd do some googling on that to find samples

could review.




"khoick245" (e-mail address removed) wrote in message
snip-
hi Ken. i have some new problems. i added group into existing tab. On
this group, i created a gallery which has its xml structu
gallery id="glrSymbolic" screentip="Select Symbolic" label="Select
Symbolic" showImage="false"
item id="__id1" label="%LastName%" /
item id="__id2" label="%FirstName%" /
item id="__id3" label="%UserName%" /
item id="__id4" label="%Email%" /
/gallery
I want whenever i choice a item from gallery, the label will be
inserted into position of pointer in current mail compose( assum
that
i'm composing email at that time ). Can you give me some suggestions?
thank you !

hi ken ! i'm sorry to trouble you but i tried my best i hadn't solve
my problem yet. i want to insert a text into current position of curso
when i compose mail. although i found many sources by google, i coul
not figure out what should i do. can you give me some suggestion o
related code? i use C# 2008 and Outlook 2007. thank you so muc
 
I told you I've never worked with gallery controls, so I have no information
or insights in working with them at all.

As far as inserting text unless you are using Redemption you more or less
would have to get the HTMLBody and cast it as an IHTMLDocument object and
then use HTML code to work with the document. At that point it's all HTML
coding that would be covered in an HTML group.
 
Back
Top