PC Review Forums Newsgroups Microsoft Access Microsoft Access VBA Modules Customizing Ribbon - Close Print Preview Button?

Reply

Customizing Ribbon - Close Print Preview Button?

 
Thread Tools Rate Thread
Old 13-11-2007, 10:21 AM   #1
=?Utf-8?B?SGVhdGhlcg==?=
Guest
 
Posts: n/a
Default Customizing Ribbon - Close Print Preview Button?


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>
  Reply With Quote
Old 13-11-2007, 02:19 PM   #2
=?Utf-8?B?SGVhdGhlcg==?=
Guest
 
Posts: n/a
Default RE: Customizing Ribbon - Close Print Preview Button?

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


"Heather" wrote:

> 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>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off