Question Access 2007 Ribbon XML syntax

AshwoodIT

New member
Local time
Today, 20:25
Joined
Mar 25, 2014
Messages
3
I am upgrading an Access 2000 system to 2007 and replacing user toolbars with Ribbons.
I have a strange parsing error that I think is not my error. I have placed the following control into a group:
<control idMso="GroupPrintPreviewClosePreview" label="Close Preview" enabled="true"/>
and "the system" rejects it with Error Code 0x80004005 Element <group> is not expected in <group>
It turns out that it is finding the word Group within the double quotes and interpretting is at part of the XML syntax. Change to another idMSO and the problem goes away. Same happened with another control that had the word Group in the id.

Has anyone come across this and found a solution?
 
Hi

<group idMso="GroupPrintPreviewClosePreview"/>

We can not have nested groups. Position out of any group.
 
Last edited:
Thanks for the response Ari. The relevant part of my XML was
<tab id="TabR3" label="Close" visible="true">
<group id="grpClose" label="Close">
<control idMso="GroupPrintPreviewClosePreview" label="Close Preview" enabled="true"/>
</group>
</tab>
So I think I have correct syntax - it needs to be a <control keyword.
 
Hi

<group id="grpClose" label="Close Preview">
<button idMso="PrintPreviewClose" size="large" label="Close" />
</group>
 

Users who are viewing this thread

Back
Top Bottom