PC Review


Reply
Thread Tools Rate Thread

Customizing Ribbon - Close Print Preview Button?

 
 
=?Utf-8?B?SGVhdGhlcg==?=
Guest
Posts: n/a
 
      13th Nov 2007
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
 
 
 
 
=?Utf-8?B?SGVhdGhlcg==?=
Guest
Posts: n/a
 
      13th Nov 2007
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Print Preview Ribbon - Excel Button Bob Darlington Microsoft Access 0 7th Jan 2011 09:41 AM
Print Preview Ribbon Mike S Microsoft Excel Programming 3 25th Aug 2009 02:34 PM
Close Button on print preview report =?Utf-8?B?Sm9zZQ==?= Microsoft Access Reports 0 22nd Oct 2007 12:03 PM
Missing close button on print preview =?Utf-8?B?SGFuYQ==?= Microsoft Access Reports 4 25th May 2004 07:16 PM
Re: Customizing print preview window Chip Pearson Microsoft Excel Programming 0 22nd Aug 2003 01:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:04 PM.