Customizing Ribbion issue

alorenzini

Registered User.
Local time
Today, 04:52
Joined
Oct 16, 2007
Messages
25
I have the following code that does seems to work right:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon startFromScratch="true">
<tabs>
<tab id="tabMain" label="CRSTHA Manager">
</tab>
</tabs>
</ribbon>
</customUI>

But when I try to add a button with the following code it doesn't work:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon startFromScratch="true">
<tabs>
<tab id="tabMain" label="CRSTHA Manager">
<group id="grpHome" label="Home"/> <button id="cmdHome" label="Home" size="large" onAction="onOpenFormEdit" tag="frmMain"/>
</tab>
</tabs>
</ribbon>
</customUI>

Any ideas?
 
just starting to learn about ribbons myself-

but I think you need to close the group by inserting
</group>
after your group id information...

There is a great article at MSDN-
http://msdn2.microsoft.com/en-us/li...ceAccess2007RibbonX_ScenarioMarketingProjects

I basically started out by using the example on their site and then customized it to my app-I learned a lot by doing it this way and seeing the results. There is also some helpful files available (icons, schema, etc)
 
I think it is closed:

<group id="grpHome" label="Home"/>
 
This works for me when I tried it-

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon startFromScratch="true">
<tabs>
<tab id="tabMain" label="CRSTHA Manager">
<group id="grpHome" label="Home">
<button id="cmdHome" label="Home" size="large" onAction="onOpenFormEdit" tag="frmMain"/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>

Now if you want a graphic button-you do this-

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon startFromScratch="true">
<tabs>
<tab id="tabMain" label="CRSTHA Manager">
<group id="grpHome" label="Home">
<button id="cmdHome" label="Home" size="large" onAction="onOpenFormEdit" imageMso="SmartArtResetGraphic" tag="frmMain"/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>


As I stated before, all this is contained in the MSDN site I indicated previously (icon came from the Excel file referenced in the article).....
 

Users who are viewing this thread

Back
Top Bottom