PC Review


Reply
Thread Tools Rate Thread

add a designed group into a existing inspector ribbon

 
 
khoick245
Guest
Posts: n/a
 
      3rd Apr 2010

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


--
khoick245
 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      5th Apr 2010
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]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"khoick245" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> 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
>
>
>
>
> --
> khoick245


 
Reply With Quote
 
khoick245
Guest
Posts: n/a
 
      6th Apr 2010

'Ken Slovak - [MVP - Outlook Wrote:
> ;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.
>
> --
> 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
>
>
> "khoick245" (E-Mail Removed) wrote in message
> news:(E-Mail Removed)...-
>
> 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
>
>
>
>
> --
> khoick245 -


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


--
khoick245
 
Reply With Quote
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      6th Apr 2010
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]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"khoick245" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
<snip>
> hi Ken. thanks for your help. i think i did it. now i want to add new
> group into tab Message of mail.compose ribbon. what should i do???
>
>
>
>
> --
> khoick245


 
Reply With Quote
 
khoick245
Guest
Posts: n/a
 
      9th Apr 2010

'Ken Slovak - [MVP - Outlook Wrote:
> ;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 Removed) wrote in message
> news:(E-Mail Removed)..
> 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??
>
>
>
>
> --
> khoick245


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


--
khoick245
 
Reply With Quote
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      9th Apr 2010
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]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"khoick245" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
<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 structure:
> <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( assume that
> i'm composing email at that time ). Can you give me some suggestions?
> thank you !
>
>
>
>
> --
> khoick245


 
Reply With Quote
 
khoick245
Guest
Posts: n/a
 
      13th Apr 2010

'Ken Slovak - [MVP - Outlook Wrote:
> ;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.
>
> --
> 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
>
>
> "khoick245" (E-Mail Removed) wrote in message
> news:(E-Mail Removed)...
> 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 !
>
>
>
>
> --
> khoick245 -


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


--
khoick245
 
Reply With Quote
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      14th Apr 2010
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.

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


"khoick245" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
<snip>
> hi ken ! i'm sorry to trouble you but i tried my best i hadn't solved
> my problem yet. i want to insert a text into current position of cursor
> when i compose mail. although i found many sources by google, i could
> not figure out what should i do. can you give me some suggestion or
> related code? i use C# 2008 and Outlook 2007. thank you so much
>
>
>
>
> --
> khoick245


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a button to existing ribbon Tom Microsoft Outlook Program Addins 6 4th Apr 2010 01:44 PM
Installing addin on existing ribbon tab PepperX Microsoft Outlook Discussion 1 25th Jan 2010 01:34 PM
add customui ribbon tab to a existing workbook QB Microsoft Excel Programming 3 26th Nov 2009 03:41 PM
Using Ribbon in Inspector window tnemec78@googlemail.com Microsoft Outlook Program Addins 2 21st May 2009 07:59 PM
Help! Inspector.Close is fired before Inspector.Activate handler finishes Sergey Anchipolevsky Microsoft Outlook Program Addins 8 9th Feb 2006 09:51 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:35 PM.