Hello all,
I am using Access 2007 and have implemented the ribbon.
I have two contextual tabs: one for several forms; one for print preview. The form and report 'Ribbon name' property has the name of the ribbon (Documentation and PrintPreview).
The first time I go to a form with a contextual tab or to print preview the tab appears but does not receive the focus. The second and all subsequent times it receives the focus.
Any ideas on how to fix this?
Thanks for your help.
Bill
Here is the XML for the Print Preview tab
I am using Access 2007 and have implemented the ribbon.
I have two contextual tabs: one for several forms; one for print preview. The form and report 'Ribbon name' property has the name of the ribbon (Documentation and PrintPreview).
The first time I go to a form with a contextual tab or to print preview the tab appears but does not receive the focus. The second and all subsequent times it receives the focus.
Any ideas on how to fix this?
Thanks for your help.
Bill
Here is the XML for the Print Preview tab
Code:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="onRibbonLoad">
<ribbon>
<contextualTabs>
<tabSet idMso="TabSetFormReportExtensibility">
<tab id="tabPrintPreview" label="Print Preview">
<group id="grpZoom" label="Zoom" visible="true">
<splitButton idMso="PrintPreviewZoomMenu" size="large"/>
<toggleButton idMso="ZoomFitToWindow" size="large"/>
<toggleButton idMso="ZoomOnePage" size="large"/>
<toggleButton idMso="PrintPreviewZoomTwoPages" size="large"/>
</group>
<group id="grpsaveemailfax" label="Save Email Fax" visible="true">
<button id="btnsavereport" label="Save" size="large" imageMso="FileSave" onAction="OpenRibbonReport"/>
<button id="btnemailreport" label="Email" size="large" imageMso="EnvelopesAndLabelsDialog" onAction="OpenRibbonReport"/>
<button id="btnfaxreport" label="Fax" size="large" imageMso="FileInternetFax" onAction="OpenRibbonReport"/>
</group>
<group id="grpPrint" label="Print" visible="true">
<button id="btnPrintDialog" label="Print Dialogue" size="large" imageMso="PrintDialogAccess"
onAction="OpenRibbonReport"/>
<button idMso="FilePrintQuick" size="large" label="Quick Print"/>-->
</group>
<group id="grpClosePreview" label="Close Preview" visible="true">
<button idMso="PrintPreviewClose" size="large" label="Close Preview" imageMso="PrintPreviewClose"/>
</group>
</tab>
</tabSet>
</contextualTabs>
</ribbon>
</customUI>