Customizing Ribbon - Close Print Preview Button?

G

Guest

I am creating a custom ribbon and would like to limit the commands available
to a few report printing and exporting options.
How can I show a big button for Close Print Preview like on the standard
Print Preview Ribbon?
My current code just shows a small icon:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon startFromScratch="true">
<tabs>
<tab id="dbCMAppTab" label="CMApp" visible="true">
<group id="dbExportGroup" label="Export Options">
<control idMso="ExportWord" label="Export to Word" enabled="true"/>
<control idMso="ExportTextFile" label="Export to Notepad"
enabled="true"/>
<control idMso="FileSendAsAttachment" label="Email" enabled="true"/>
</group>
<group id="dbPrintGroup" label="Print Options">
<control idMso="FilePrintQuick" label="Print" enabled="true"/>
<control idMso="FilePrintPreview" label="Print Preview"
enabled="true"/>
<control idMso="PrintPreviewClose" label="CLOSE" enabled="true"/>
</group>
<group id="dbClosePreview" label="Close Preview">
<control idMso="PrintPreviewClose" label="CLOSE" enabled="true"/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>
 
G

Guest

I solved it by adding size="large" between the label and enabled statements
i.e.
<control idMso="PrintPreviewClose" label="CLOSE" size="large"
enabled="true"/>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top