• Status: Solved
  • Priority: High
  • Security: Public
  • Views: 159
  • 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">
	<backstage>
		<!-- Office Export Tab -->
		<tab idMso="Publish2Tab">
			<firstColumn>
				<taskFormGroup idMso="PublishGroup">
					<category idMso="FileTypes">
						<task id="myTask" label="My Task">
							<group id="myGroup" label="My Group"/>
						</task>
					</category>
				</taskFormGroup>
			</firstColumn>
		</tab>
	</backstage>
</customUI>

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?
0
Jamie Garroch
Asked:
Jamie Garroch
  • 2
  • 2
1 Solution
 
ste5anSenior DeveloperCommented:
Take a look at Gunter's RibbonCreator.
1
 
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?
0
 
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.
0
 
ste5anSenior DeveloperCommented:
According to Customizing Office 2013 backstage it is TabPublish.
0
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

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

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