Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

My Print Ribbon does not appear with 2010 Runtime version

55 views
Skip to first unread message

PW

unread,
Mar 16, 2012, 4:03:46 PM3/16/12
to
Hi,

It appears and works with the ACCDE, and ACCDB (both with the shift
key and by clicking on the database).

Allow Full Menus is checked for the current database in backstage.

Here is the code:

<ribbon startFromScratch="true">
<tabs>
<tab id="tabReportOptions" label="Report Print and View
Options">
<group idMso="GroupPrintPreviewPrintAccess" />
<group idMso="GroupPageLayoutAccess" />
<group idMso="GroupZoom" />
<group idMso="GroupPrintPreviewData"/>
<group idMso="GroupPrintPreviewClosePreview" />
</tab>
</tabs>
</ribbon>


Any ideas? Do I have to make my own print tab in the main ribbon for
these print options to be available? Right now I have a main ribbon
and a print ribbon (as above).

-paul

Albert D. Kallal

unread,
Mar 16, 2012, 9:29:39 PM3/16/12
to
What you have should work.

I assume you specify this ribbon in the "other" tab setting for all reports.

In addition, you do have the show UI errors turned on so that any errors in
the xml shows up?\

And last but not least, you posted xml looks fine, but you are missing the
xml heading part - I assume this was just left out for this post?

The full xml you need is thus:

<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<ribbon startFromScratch="true">
<tabs>
<tab id="tabReportOptions" label="Report Print and View
Options">
<group idMso="GroupPrintPreviewPrintAccess" />
<group idMso="GroupPageLayoutAccess" />
<group idMso="GroupZoom" />
<group idMso="GroupPrintPreviewData"/>
<group idMso="GroupPrintPreviewClosePreview" />
</tab>
</tabs>
</ribbon>
</customUI>


The above should work just fine in runtime.

--
Albert D. Kallal
Edmonton, Alberta Canada
PleaseNoS...@msn.com

PW

unread,
Mar 16, 2012, 10:10:05 PM3/16/12
to
Hi Albert!

>What you have should work.
>
>I assume you specify this ribbon in the "other" tab setting for all reports.
>

Yes, I used that awesome code of yours to update every report's
property to use the report ribbon.

>In addition, you do have the show UI errors turned on so that any errors in
>the xml shows up?\
>

Yes. But maybe my wife's PC does not. I will check it out.

>And last but not least, you posted xml looks fine, but you are missing the
>xml heading part - I assume this was just left out for this post?

Yeah, I had butter fingers.

>
>The full xml you need is thus:
>
><customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
> <ribbon startFromScratch="true">
> <tabs>
> <tab id="tabReportOptions" label="Report Print and View
>Options">
> <group idMso="GroupPrintPreviewPrintAccess" />
> <group idMso="GroupPageLayoutAccess" />
> <group idMso="GroupZoom" />
> <group idMso="GroupPrintPreviewData"/>
> <group idMso="GroupPrintPreviewClosePreview" />
> </tab>
> </tabs>
> </ribbon>
></customUI>
>

That is what I have.

RibbonXML
"<customUI
xmlns=""http://schemas.microsoft.com/office/2009/07/customui"">
<ribbon startFromScratch=""true"">
<tabs>
<!-- Thanks Albert Kallal in comp.databases.ms-access for
this!!! Where did he get the Group prefix? -> AccessControls.xls
download from
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=6627
-->
<tab id=""tabReportOptions"" label=""Report Print and View
Options"">
<group idMso=""GroupPrintPreviewPrintAccess"" />
<group idMso=""GroupPageLayoutAccess"" />
<group idMso=""GroupZoom"" />
<group idMso=""GroupPrintPreviewData""/>
<group idMso=""GroupPrintPreviewClosePreview"" />
</tab>
</tabs>
</ribbon>
</customUI>"

>
>The above should work just fine in runtime.

I googled this problem and did see some replies from you but I don't
think the problem was ever solved without extra coding.


http://social.msdn.microsoft.com/Forums/en-US/accessdev/thread/daab1fa9-6814-4239-9c37-c12050495b04/
http://social.msdn.microsoft.com/Forums/en-US/accessdev/thread/f679de52-dd58-4ba1-854c-bed1990eb74d/


-paul

PW

unread,
Mar 19, 2012, 1:54:41 PM3/19/12
to
Nope. The Print Ribbon does not appear when a report is opened when
using the runtime version of Access 2010. I guess I need to create a
seperate tab for the print options as part of the main ribbon and
forget about having more than one ribbon.

-paulw

PW

unread,
Mar 19, 2012, 2:30:38 PM3/19/12
to
On Fri, 16 Mar 2012 19:29:39 -0600, "Albert D. Kallal"
<PleaseNOS...@msn.com> wrote:

It must have something to do with the commands I am using above. My
wife found something on your website Albert (reporttoribbon2.pdf - or
something like that) where you have code in a module to deal with
various file formats (in order to email the report) and now the report
ribbon is appearing in the runtime!

-paul
0 new messages