OK. So for about a million years, since MS Office has been using their ribbons, I've been able to create a Custom Ribbon that I use exclusively for my Reports:
I turn off all the toolbars and menus and then, when someone generates a report, the Reports Ribbon appears, because it is assigned to the RibbonName Property of each of my reports.
This has worked flawlessly since the Dark Ages.
One of my co-workers recently was upgraded to MSO 2013. The Reports ribbon no longer showed up, and all of a sudden, the Print Preview Ribbon started showing up on his reports. But, he was unable to use any of the built in buttons for that ribbon.
Now, the rest of the office has been upgraded to MSO 2013 (including your friendly local Database Administrator), and now the custom Ribbon does not work for anyone.
Any ideas why this works this way (or more correctly, doesn't work)?
Any suggestions for the dreaded "workaround "? I think one workaround might be to turn the toolbars back on every time there is a report generated.
I also don't want to add "Print" and "Close" buttons to all of my reports, either.
Any advice or insight would be appreciated.
Grace and peace!
Code:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon startFromScratch="true">
<tabs>
<tab id="dbCustomTab" label="Reports" visible="true">
<group id="dbCustomGroup" label="Report Functions">
<control idMso="PrintPreviewZoomMenu" label="Zoom" enabled="true"/>
<control idMso="PrintPreviewClose" label="Close" enabled="true"/>
<control idMso="PrintDialogAccess" label="Print" enabled="true"/>
<control idMso="FileSaveAsPdfOrXps" label="PDF" enabled="true"/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>
This has worked flawlessly since the Dark Ages.
One of my co-workers recently was upgraded to MSO 2013. The Reports ribbon no longer showed up, and all of a sudden, the Print Preview Ribbon started showing up on his reports. But, he was unable to use any of the built in buttons for that ribbon.
Now, the rest of the office has been upgraded to MSO 2013 (including your friendly local Database Administrator), and now the custom Ribbon does not work for anyone.
Any ideas why this works this way (or more correctly, doesn't work)?
Any suggestions for the dreaded "workaround "? I think one workaround might be to turn the toolbars back on every time there is a report generated.
I also don't want to add "Print" and "Close" buttons to all of my reports, either.
Any advice or insight would be appreciated.
Grace and peace!
Comment