Welcome to Lockergnome.com!
HomeHome FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Insert Ribbon buttons into QuickAccessToolbar problem

 
   Home -> Office -> Program Add-Ins RSS
Next:  Program Add-Ins: WordEditor Modify HTMLBODY Formatting lost  
Author Message
Christian Havel

External


Since: Jul 03, 2007
Posts: 28



(Msg. 1) Posted: Mon Jul 09, 2007 1:38 am
Post subject: Insert Ribbon buttons into QuickAccessToolbar problem
Archived from groups: microsoft>public>outlook>program_addins (more info?)

Hi,

with the following code I try to insert buttons into the QuickAccessToolbar,
which does not work.

Dim strDescription As String
strDescription = "<customUI
xmlns=""http://schemas.microsoft.com/office/2006/01/customui""
loadImage=""LoadImage"">"
strDescription = strDescription & _
"<ribbon>" & _
"<quat>" & _
"<documentControls>" & _
"<button id=""IDS_WaehlenCombo"" label=""" &
GetCheckedResString(IDS_WaehlenCombo) & """ onAction=""cmdCommonRibbonBttn""
getImage=""GetImage"" />" & _
"<button id=""IDS_Auflegen"" label=""" &
GetCheckedResString(IDS_Auflegen) & """ onAction=""cmdCommonRibbonBttn""
getImage=""GetImage"" />" & _
"<button id=""IDS_Aktionen"" label=""" &
GetCheckedResString(IDS_Aktionen) & """ onAction=""cmdCommonRibbonBttn""
getImage=""GetImage""/>" & _
"</documentControls>" & _
"</quat>" & _
"</ribbon>" & _
"</customUI>"

Does anybody see my failure?
Christian
Back to top
Login to vote
Ken Slovak - [MVP - Outlo

External


Since: Oct 17, 2003
Posts: 3213



(Msg. 2) Posted: Mon Jul 09, 2007 9:31 am
Post subject: Re: Insert Ribbon buttons into QuickAccessToolbar problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

For one thing you have to use the correct name and tie it to an idMso, plus
you need the <tabs> and <tab> tags there just as if you were working with
any other ribbon:

<ribbon>
<tabs>
<tab idMso="Quick Access Toolbar">

You also should be aware that any QAT modifications you make will only apply
to the QAT for that ribbon. If you customize the QAT for Outlook.Mail.Read
it won't apply to Outlook.Mail.Compose or any other ribbon. You'll need to
apply your QAT customizations to every ribbon where you want the
customizations to appear.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Christian Havel" <ChristianHavel.DeleteThis@discussions.microsoft.com> wrote in
message news:81A68D7C-B9DA-4DAA-9C61-F78E2EB9F8E0@microsoft.com...
> Hi,
>
> with the following code I try to insert buttons into the
> QuickAccessToolbar,
> which does not work.
>
> Dim strDescription As String
> strDescription = "<customUI
> xmlns=""http://schemas.microsoft.com/office/2006/01/customui""
> loadImage=""LoadImage"">"
> strDescription = strDescription & _
> "<ribbon>" & _
> "<quat>" & _
> "<documentControls>" & _
> "<button id=""IDS_WaehlenCombo"" label=""" &
> GetCheckedResString(IDS_WaehlenCombo) & """
> onAction=""cmdCommonRibbonBttn""
> getImage=""GetImage"" />" & _
> "<button id=""IDS_Auflegen"" label=""" &
> GetCheckedResString(IDS_Auflegen) & """ onAction=""cmdCommonRibbonBttn""
> getImage=""GetImage"" />" & _
> "<button id=""IDS_Aktionen"" label=""" &
> GetCheckedResString(IDS_Aktionen) & """ onAction=""cmdCommonRibbonBttn""
> getImage=""GetImage""/>" & _
> "</documentControls>" & _
> "</quat>" & _
> "</ribbon>" & _
> "</customUI>"
>
> Does anybody see my failure?
> Christian
Back to top
Login to vote
Christian Havel

External


Since: Jul 03, 2007
Posts: 28



(Msg. 3) Posted: Mon Jul 09, 2007 9:31 am
Post subject: Re: Insert Ribbon buttons into QuickAccessToolbar problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Ken,

I tried it with the two following Ribbon descriptions. I receive the error
message:

Failure in analysing from "Quick Access Toolbar" as NCName-datatype.
Failure in analysing from attribut "idMso" with the value "Quick Access
Toolbar"

(It is translated from german)

1.) Ribbon desription:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
loadImage="LoadImage"><ribbon><tabs><tab idMso="Quick Access Toolbar" ><group
id="c4bBrand" label="XPhone"><button id="IDS_WaehlenCombo" label="Wählen"
onAction="cmdCommonRibbonBttn" getImage="GetImage" /><button
id="IDS_Auflegen" label="Auflegen" onAction="cmdCommonRibbonBttn"
getImage="GetImage" /><button id="IDS_Aktionen" label="Aktionen"
onAction="cmdCommonRibbonBttn"
getImage="GetImage"/></group></tab></tabs></ribbon></customUI>

2.) Ribbon description:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
loadImage="LoadImage"><ribbon><tabs><tab idMso="Quick Access Toolbar"
><button id="IDS_WaehlenCombo" label="Wählen" onAction="cmdCommonRibbonBttn"
getImage="GetImage" /><button id="IDS_Auflegen" label="Auflegen"
onAction="cmdCommonRibbonBttn" getImage="GetImage" /><button
id="IDS_Aktionen" label="Aktionen" onAction="cmdCommonRibbonBttn"
getImage="GetImage"/></tab></tabs></ribbon></customUI>

"Ken Slovak - [MVP - Outlook]" wrote:

> For one thing you have to use the correct name and tie it to an idMso, plus
> you need the <tabs> and <tab> tags there just as if you were working with
> any other ribbon:
>
> <ribbon>
> <tabs>
> <tab idMso="Quick Access Toolbar">
>
> You also should be aware that any QAT modifications you make will only apply
> to the QAT for that ribbon. If you customize the QAT for Outlook.Mail.Read
> it won't apply to Outlook.Mail.Compose or any other ribbon. You'll need to
> apply your QAT customizations to every ribbon where you want the
> customizations to appear.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> "Christian Havel" <ChristianHavel DeleteThis @discussions.microsoft.com> wrote in
> message news:81A68D7C-B9DA-4DAA-9C61-F78E2EB9F8E0@microsoft.com...
> > Hi,
> >
> > with the following code I try to insert buttons into the
> > QuickAccessToolbar,
> > which does not work.
> >
> > Dim strDescription As String
> > strDescription = "<customUI
> > xmlns=""http://schemas.microsoft.com/office/2006/01/customui""
> > loadImage=""LoadImage"">"
> > strDescription = strDescription & _
> > "<ribbon>" & _
> > "<quat>" & _
> > "<documentControls>" & _
> > "<button id=""IDS_WaehlenCombo"" label=""" &
> > GetCheckedResString(IDS_WaehlenCombo) & """
> > onAction=""cmdCommonRibbonBttn""
> > getImage=""GetImage"" />" & _
> > "<button id=""IDS_Auflegen"" label=""" &
> > GetCheckedResString(IDS_Auflegen) & """ onAction=""cmdCommonRibbonBttn""
> > getImage=""GetImage"" />" & _
> > "<button id=""IDS_Aktionen"" label=""" &
> > GetCheckedResString(IDS_Aktionen) & """ onAction=""cmdCommonRibbonBttn""
> > getImage=""GetImage""/>" & _
> > "</documentControls>" & _
> > "</quat>" & _
> > "</ribbon>" & _
> > "</customUI>"
> >
> > Does anybody see my failure?
> > Christian
>
>
Back to top
Login to vote
Ken Slovak - [MVP - Outlo

External


Since: Oct 17, 2003
Posts: 3213



(Msg. 4) Posted: Mon Jul 09, 2007 1:28 pm
Post subject: Re: Insert Ribbon buttons into QuickAccessToolbar problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hmm. It's documented as "Quick Access Toolbar" but you might need to use
"qat" despite the documentation. See if it works if you use the idMso =
"qat".

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Christian Havel" <ChristianHavel.TakeThisOut@discussions.microsoft.com> wrote in
message news:D105BC27-D810-4853-9C26-6234F128DBFD@microsoft.com...
> Hi Ken,
>
> I tried it with the two following Ribbon descriptions. I receive the error
> message:
>
> Failure in analysing from "Quick Access Toolbar" as NCName-datatype.
> Failure in analysing from attribut "idMso" with the value "Quick Access
> Toolbar"
>
> (It is translated from german)
>
> 1.) Ribbon desription:
> <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
> loadImage="LoadImage"><ribbon><tabs><tab idMso="Quick Access Toolbar"
> ><group
> id="c4bBrand" label="XPhone"><button id="IDS_WaehlenCombo" label="Wählen"
> onAction="cmdCommonRibbonBttn" getImage="GetImage" /><button
> id="IDS_Auflegen" label="Auflegen" onAction="cmdCommonRibbonBttn"
> getImage="GetImage" /><button id="IDS_Aktionen" label="Aktionen"
> onAction="cmdCommonRibbonBttn"
> getImage="GetImage"/></group></tab></tabs></ribbon></customUI>
>
> 2.) Ribbon description:
> <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
> loadImage="LoadImage"><ribbon><tabs><tab idMso="Quick Access Toolbar"
>><button id="IDS_WaehlenCombo" label="Wählen"
>>onAction="cmdCommonRibbonBttn"
> getImage="GetImage" /><button id="IDS_Auflegen" label="Auflegen"
> onAction="cmdCommonRibbonBttn" getImage="GetImage" /><button
> id="IDS_Aktionen" label="Aktionen" onAction="cmdCommonRibbonBttn"
> getImage="GetImage"/></tab></tabs></ribbon></customUI>
Back to top
Login to vote
Christian Havel

External


Since: Jul 03, 2007
Posts: 28



(Msg. 5) Posted: Tue Jul 10, 2007 12:10 am
Post subject: Re: Insert Ribbon buttons into QuickAccessToolbar problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Ken,

I tried it with the following code:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
loadImage="LoadImage"><ribbon><tabs><tab idMso="quat" ><button
id="IDS_WaehlenCombo" label="Wählen" onAction="cmdCommonRibbonBttn"
getImage="GetImage" /><button id="IDS_Auflegen" label="Auflegen"
onAction="cmdCommonRibbonBttn" getImage="GetImage" /><button
id="IDS_Aktionen" label="Aktionen" onAction="cmdCommonRibbonBttn"
getImage="GetImage"/></tab></tabs></ribbon></customUI>

and received the following error message (translated from german):

Errorcode: 0x80004005
Element '{http://schemas.microsoft.com/office/2006/01/customui}button' is
corresponding to the "Inhaltsmodell" from the higher element
'{http://schemas.microsoft.com/office/2006/01/customui}tab' unexpected

Christian

"Ken Slovak - [MVP - Outlook]" wrote:

> Hmm. It's documented as "Quick Access Toolbar" but you might need to use
> "qat" despite the documentation. See if it works if you use the idMso =
> "qat".
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> "Christian Havel" <ChristianHavel.RemoveThis@discussions.microsoft.com> wrote in
> message news:D105BC27-D810-4853-9C26-6234F128DBFD@microsoft.com...
> > Hi Ken,
> >
> > I tried it with the two following Ribbon descriptions. I receive the error
> > message:
> >
> > Failure in analysing from "Quick Access Toolbar" as NCName-datatype.
> > Failure in analysing from attribut "idMso" with the value "Quick Access
> > Toolbar"
> >
> > (It is translated from german)
> >
> > 1.) Ribbon desription:
> > <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
> > loadImage="LoadImage"><ribbon><tabs><tab idMso="Quick Access Toolbar"
> > ><group
> > id="c4bBrand" label="XPhone"><button id="IDS_WaehlenCombo" label="Wählen"
> > onAction="cmdCommonRibbonBttn" getImage="GetImage" /><button
> > id="IDS_Auflegen" label="Auflegen" onAction="cmdCommonRibbonBttn"
> > getImage="GetImage" /><button id="IDS_Aktionen" label="Aktionen"
> > onAction="cmdCommonRibbonBttn"
> > getImage="GetImage"/></group></tab></tabs></ribbon></customUI>
> >
> > 2.) Ribbon description:
> > <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
> > loadImage="LoadImage"><ribbon><tabs><tab idMso="Quick Access Toolbar"
> >><button id="IDS_WaehlenCombo" label="Wählen"
> >>onAction="cmdCommonRibbonBttn"
> > getImage="GetImage" /><button id="IDS_Auflegen" label="Auflegen"
> > onAction="cmdCommonRibbonBttn" getImage="GetImage" /><button
> > id="IDS_Aktionen" label="Aktionen" onAction="cmdCommonRibbonBttn"
> > getImage="GetImage"/></tab></tabs></ribbon></customUI>
>
>
Back to top
Login to vote
Ken Slovak - [MVP - Outlo

External


Since: Oct 17, 2003
Posts: 3213



(Msg. 6) Posted: Tue Jul 10, 2007 9:47 am
Post subject: Re: Insert Ribbon buttons into QuickAccessToolbar problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Is it better if you change:

<tab idMso="quat" >

to

<tab idMso="qat" > ?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Christian Havel" <ChristianHavel.TakeThisOut@discussions.microsoft.com> wrote in
message news:2E23CAB7-B249-4C64-A9C5-9A109322E71B@microsoft.com...
> Hi Ken,
>
> I tried it with the following code:
>
> <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
> loadImage="LoadImage"><ribbon><tabs><tab idMso="quat" ><button
> id="IDS_WaehlenCombo" label="Wählen" onAction="cmdCommonRibbonBttn"
> getImage="GetImage" /><button id="IDS_Auflegen" label="Auflegen"
> onAction="cmdCommonRibbonBttn" getImage="GetImage" /><button
> id="IDS_Aktionen" label="Aktionen" onAction="cmdCommonRibbonBttn"
> getImage="GetImage"/></tab></tabs></ribbon></customUI>
>
> and received the following error message (translated from german):
>
> Errorcode: 0x80004005
> Element '{http://schemas.microsoft.com/office/2006/01/customui}button' is
> corresponding to the "Inhaltsmodell" from the higher element
> '{http://schemas.microsoft.com/office/2006/01/customui}tab' unexpected
>
> Christian
Back to top
Login to vote
Christian Havel

External


Since: Jul 03, 2007
Posts: 28



(Msg. 7) Posted: Tue Jul 10, 2007 9:47 am
Post subject: Re: Insert Ribbon buttons into QuickAccessToolbar problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Ken,

with the following code I tried it:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
loadImage="LoadImage"><ribbon><tabs><tab idMso="qat" ><button
id="IDS_WaehlenCombo" label="Wählen" onAction="cmdCommonRibbonBttn"
getImage="GetImage" /><button id="IDS_Auflegen" label="Auflegen"
onAction="cmdCommonRibbonBttn" getImage="GetImage" /><button
id="IDS_Aktionen" label="Aktionen" onAction="cmdCommonRibbonBttn"
getImage="GetImage"/></tab></tabs></ribbon></customUI>

Outlook says that there are some problems with the button in the tab. ????
Christian

"Ken Slovak - [MVP - Outlook]" wrote:

> Is it better if you change:
>
> <tab idMso="quat" >
>
> to
>
> <tab idMso="qat" > ?
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> "Christian Havel" <ChristianHavel.RemoveThis@discussions.microsoft.com> wrote in
> message news:2E23CAB7-B249-4C64-A9C5-9A109322E71B@microsoft.com...
> > Hi Ken,
> >
> > I tried it with the following code:
> >
> > <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
> > loadImage="LoadImage"><ribbon><tabs><tab idMso="quat" ><button
> > id="IDS_WaehlenCombo" label="Wählen" onAction="cmdCommonRibbonBttn"
> > getImage="GetImage" /><button id="IDS_Auflegen" label="Auflegen"
> > onAction="cmdCommonRibbonBttn" getImage="GetImage" /><button
> > id="IDS_Aktionen" label="Aktionen" onAction="cmdCommonRibbonBttn"
> > getImage="GetImage"/></tab></tabs></ribbon></customUI>
> >
> > and received the following error message (translated from german):
> >
> > Errorcode: 0x80004005
> > Element '{http://schemas.microsoft.com/office/2006/01/customui}button' is
> > corresponding to the "Inhaltsmodell" from the higher element
> > '{http://schemas.microsoft.com/office/2006/01/customui}tab' unexpected
> >
> > Christian
>
>
Back to top
Login to vote
Ken Slovak - [MVP - Outlo

External


Since: Oct 17, 2003
Posts: 3213



(Msg. 8) Posted: Tue Jul 10, 2007 2:59 pm
Post subject: Re: Insert Ribbon buttons into QuickAccessToolbar problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Now I'm guessing (I haven't worked with the QAT myself in code) but it's
possible you can only modify the QAT in code if you use the
<startfromscratch> setting, which would mean that you have to construct
everything from scratch.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Christian Havel" <ChristianHavel.RemoveThis@discussions.microsoft.com> wrote in
message news:5B7B38E8-9079-43F5-BC52-8836C56728E9@microsoft.com...
> Hi Ken,
>
> with the following code I tried it:
>
> <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
> loadImage="LoadImage"><ribbon><tabs><tab idMso="qat" ><button
> id="IDS_WaehlenCombo" label="Wählen" onAction="cmdCommonRibbonBttn"
> getImage="GetImage" /><button id="IDS_Auflegen" label="Auflegen"
> onAction="cmdCommonRibbonBttn" getImage="GetImage" /><button
> id="IDS_Aktionen" label="Aktionen" onAction="cmdCommonRibbonBttn"
> getImage="GetImage"/></tab></tabs></ribbon></customUI>
>
> Outlook says that there are some problems with the button in the tab. ????
> Christian
Back to top
Login to vote
Patrick Schmid [MVP]

External


Since: Oct 16, 2006
Posts: 725



(Msg. 9) Posted: Mon Jul 30, 2007 8:39 pm
Post subject: Re: Insert Ribbon buttons into QuickAccessToolbar problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The QAT is modified a bit differently. If you look at the XML hierarchy,
it actually goes like this:
<customUI>
<ribbon>
<qat>
<sharedControls>
<documentControls>
<tabs>
<contextualTabs>
So you have to put your buttons in either the sharedControls or
documentControls section. I'd advise sharedControls always, as the other
one is not useful in Outlook.
The big catch though is that any QAT modifications are only applied if
you use startFromScratch="true" in the ribbon element. For most add-ins
this means that you have to stay away from the QAT. This is intentional,
as the QAT is supposed to be the user's space. If a user wants a
particular add-in's button on the QAT, he or she can add them her or
himself.

Patrick Schmid [OneNote MVP]
--------------
http://pschmid.net
***
Outlook 2007 Performance Update: http://pschmid.net/blog/2007/04/13/105
Office 2007 RTM Issues: http://pschmid.net/blog/2006/11/13/80
***
Customize Office 2007: http://pschmid.net/office2007/customize
RibbonCustomizer Add-In: http://ribboncustomizer.com
OneNote 2007: http://pschmid.net/office2007/onenote
***
Subscribe to my Office 2007 blog: http://pschmid.net/blog/feed




"Ken Slovak - [MVP - Outlook]" <kenslovak.DeleteThis@mvps.org> wrote in message
news:OtsUuRywHHA.1164@TK2MSFTNGP02.phx.gbl:

> Now I'm guessing (I haven't worked with the QAT myself in code) but it's
> possible you can only modify the QAT in code if you use the
> <startfromscratch> setting, which would mean that you have to construct
> everything from scratch.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> "Christian Havel" <ChristianHavel.DeleteThis@discussions.microsoft.com> wrote in
> message news:5B7B38E8-9079-43F5-BC52-8836C56728E9@microsoft.com...
> > Hi Ken,
> >
> > with the following code I tried it:
> >
> > <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
> > loadImage="LoadImage"><ribbon><tabs><tab idMso="qat" ><button
> > id="IDS_WaehlenCombo" label="Wählen" onAction="cmdCommonRibbonBttn"
> > getImage="GetImage" /><button id="IDS_Auflegen" label="Auflegen"
> > onAction="cmdCommonRibbonBttn" getImage="GetImage" /><button
> > id="IDS_Aktionen" label="Aktionen" onAction="cmdCommonRibbonBttn"
> > getImage="GetImage"/></tab></tabs></ribbon></customUI>
> >
> > Outlook says that there are some problems with the button in the tab. ????
> > Christian
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Program Add-Ins All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 General
 Microsoft Windows XP
 Microsoft Windows Vista
 Microsoft Windows (other)
  Microsoft Office
 Microsoft Office (other)
 Computer Security
 Linux
 Movies


[ Contact us | Terms of Service/Privacy Policy ]