Alistair's Online Service

Words of Wisdom as a Service (WoWaaS) from Alistair Speirs, Technology Specialist for Online Services @ Microsoft Australia.

Bending the Ribbon to your will…

Bending the Ribbon to your will…

  • Comments 1

There are some great resources to help smooth over the transition to Office 2007 and a very popular tool is the Get Started add-ins for Office:

clip_image001

Word: http://www.microsoft.com/downloads/details.aspx?FamilyId=F587370C-FDAE-4EDE-B528-AC58031A5DFF&displaylang=en

Excel: http://www.microsoft.com/downloads/details.aspx?FamilyId=8A5AF9D7-08A7-41BA-8844-76BB94228957&displaylang=en

PowerPoint: http://www.microsoft.com/downloads/details.aspx?FamilyId=831F0AE9-FC50-4074-96D3-D02FD98CB041&displaylang=en

 

However, if you are looking at a rollout in a large organisation, you may want to customise this ribbon to point to your own internal forums, help desk or training materials. Luckily, we thought of that – and this tutorial will guide you through the code to build your own.

The tutorial is based on Visual Studio 2005 but I was able to follow the same steps in Visual Studio 2008 . I have to admit that the environment I tried this on was non-standard (Windows 7 build 7000 64 bit, various beta bits and lots of other stuff that would make a development manager cringe). I did need to run VS2008 as an administrator to build the project, but I am not surprised with some of the DLLs that were referenced.

The article includes the standard XML for Word, Excel and PowerPoint. You can customise the XML as much as you like, without having to change any of the code. However, the XML file gets sucked into the project as a resource file, so it will require that you open the solution in visual studio to rebuild.  Once you open the ribbon.xml, what to change is pretty self evident:

<group id="c4" label="Ask the Community">

<button id="b4" label="Discuss Word 2007" size="large" imageMso="MeetingsWorkspace"
  screentip="Discuss Word 2007"
  supertip="Questions? Ask someone for answers." onAction="openPage"
  tag="http://office.microsoft.com/search/redir.aspx?
  AssetID=HA012061421033&amp;CTT=4&amp;Origin=EC102128421033" />

</group>

Happy coding!

Leave a Comment
  • Please add 6 and 4 and type the answer here:
  • Post