• Status: Solved
  • Priority: High
  • Security: Public
  • Views: 119
  • Last Modified:

Inserting new task into Office backstage fluent UI with XML

I want to add a new task and associated group to the backstage of PowerPoint using the fluent UI XML method, although the same issue occurs for Excel and Word.

Using the Microsoft-published list of idMso control IDs I've established that the structure of the tab I'm interested in as as shown below:

PowerPoint backstage, Export tab
So to append a new task control to the end of the collection of 5 built-in tasks, this is the XML I'm using:

<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
		<!-- Office Export Tab -->
		<tab idMso="Publish2Tab">
				<taskFormGroup idMso="PublishGroup">
					<category idMso="FileTypes">
						<task id="myTask" label="My Task">
							<group id="myGroup" label="My Group"/>

Open in new window

But when loading the project containing this same XML in PowerPoint, Excel or Word, I get this error:

Failed to find Office control by ID
ID: PublishGroup

I know the control ID is correct, even it it's swapped regarding Microsoft's normal naming convention because if I try taskFormGroup idMso="GroupPublish", I get the expected unknown error message instead:

Unknown Office control ID: GroupPublish

So do I have the XML structure wrong?
Jamie Garroch
Jamie Garroch
  • 2
  • 2
1 Solution
ste5anSenior DeveloperCommented:
Take a look at Gunter's RibbonCreator.
Jamie GarrochPowerPoint Consultant & DeveloperAuthor Commented:
Thank you for the link ste5an. That looks to be a useful tool for designing the <ribbon> part of the customUI but it doesn't appear to support the <backstage> development?
Jamie GarrochPowerPoint Consultant & DeveloperAuthor Commented:
I found the solution after sleeping on it! There are two idMso controls containing the word 'publish' as follows:

idMso "TabPublish" = Export tab in backstage
idMso "Publish2Tab" = Publish tab in backstage

I was using the wrong one which is why the idMso PublishGroup wasn't found.
ste5anSenior DeveloperCommented:
According to Customizing Office 2013 backstage it is TabPublish.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now