A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Hide Ribbon - Show Print



 
 
Thread Tools Display Modes
  #1  
Old January 11th, 2010, 02:29 AM posted to microsoft.public.access.forms
Terry
external usenet poster
 
Posts: 32
Default Hide Ribbon - Show Print

I would like to hide the Ribbon on start up, but still have a way to show a
way to show the print dialog box. I have been able to hide the Ribbon using
the USYSRIBBON table and the following XML, but it also disables all of the
options on the Office button, so if a report is previewed, there is no way
to print. My solution must bring up the print dialog so that the user can
select his printer.
:

customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"

commands

command idMso="FileNewDatabase" enabled="false"/

command idMso="FileCloseDatabase" enabled="false"/

command idMso="ApplicationOptionsDialog" enabled="false"/

command idMso="FileExit" enabled="false"/

/commands

/customUI


  #2  
Old January 11th, 2010, 02:34 AM posted to microsoft.public.access.forms
Terry
external usenet poster
 
Posts: 32
Default Hide Ribbon - Show Print

My bad - posted the wrong XML - please find the correct code below:

customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"

ribbon startFromScratch="true"

/ribbon

/customUI

Terry

"Terry" wrote in message
...
I would like to hide the Ribbon on start up, but still have a way to show a
way to show the print dialog box. I have been able to hide the Ribbon using
the USYSRIBBON table and the following XML, but it also disables all of the
options on the Office button, so if a report is previewed, there is no way
to print. My solution must bring up the print dialog so that the user can
select his printer.
:

customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"

commands

command idMso="FileNewDatabase" enabled="false"/

command idMso="FileCloseDatabase" enabled="false"/

command idMso="ApplicationOptionsDialog" enabled="false"/

command idMso="FileExit" enabled="false"/

/commands

/customUI



  #3  
Old January 11th, 2010, 09:38 AM posted to microsoft.public.access.forms
Albert D. Kallal
external usenet poster
 
Posts: 2,874
Default Hide Ribbon - Show Print

Just build an custom ribbon for the report. For each report, you then just
specify that ribbon in the "other tab"

I have nice report example that has pdf + email ability built in.

You can find that example he

http://www.members.shaw.ca/AlbertKal...s/DownLoad.htm

direct link:
http://www.members.shaw.ca/AlbertKal...nReportPDF.zip

grab the one called
Access 2007 report ribbon example (with PDF and email)

Just cut + paste in the report xml into your table.

And, then just import the two code modules...

You can also grab the one called:
Access 2007 Hidden interface example
The above one has a simple ribbon interface without the email + pdf options.

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada



  #4  
Old January 11th, 2010, 01:07 PM posted to microsoft.public.access.forms
Mark Andrews[_2_]
external usenet poster
 
Posts: 600
Default Hide Ribbon - Show Print

Albert has a great example for a print preview ribbon, also needed 100% for
any kind of application using the access runtime.

If you are not using the runtime, I usually just go with a custom ribbon
(while the whole application is up, it could be pretty simple) and then just
use the "out of the box" print preview ribbon. Just specify your custom
ribbon for the forms and specify no ribbon for the reports and they will use
the "out of the box" ribbon.

However Albert's has a few touches that are better than the "out of the box"
so maybe I'll start using it everywhere.

My two cents,
Mark

"Albert D. Kallal" wrote in message
...
Just build an custom ribbon for the report. For each report, you then just
specify that ribbon in the "other tab"

I have nice report example that has pdf + email ability built in.

You can find that example he

http://www.members.shaw.ca/AlbertKal...s/DownLoad.htm

direct link:
http://www.members.shaw.ca/AlbertKal...nReportPDF.zip

grab the one called
Access 2007 report ribbon example (with PDF and email)

Just cut + paste in the report xml into your table.

And, then just import the two code modules...

You can also grab the one called:
Access 2007 Hidden interface example
The above one has a simple ribbon interface without the email + pdf
options.

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada




 




Thread Tools
Display Modes

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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:07 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.