Solved

Access 2010 Print command on report

Posted on 2013-06-12
2
530 Views
Last Modified: 2013-06-13
I have an application in 2010 and I have around 10 users and hide all the ribbons.  I would like to have a command button in the header of a report that will open the print dialog button.  

I tried "DoCmd.RunCommand acCmdPrint"  and it opens the dialog but if I select print, the box closes but nothing prints.  If I right click and say print, the dialog comes up and everything works fine.

I want to do this as opposed to a custom ribbon as my understanding is I would then have to add the custom ribbon to each machine.  My thought was that my idea would be much easier to do.

Any thoughts on if there is a better way to do this are appreciated as well.
0
Comment
Question by:vmccune
2 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 39241727
0
 
LVL 21
ID: 39242285
I want to do this as opposed to a custom ribbon as my understanding is I would then have to add the custom ribbon to each machine.
You're in luck because you can storing Ribbon Extensibility XML in a Table!

See: MSDN How to: Apply a Custom Ribbon When Starting Access

FWIW:
Many years ago I also used to hide the menu bars. One day I decided to tu a custom menu bar. My users loved it.  I have used a custom menus for many years now. I even make custom right-click /shortcut menus.  While it is harder for me as a developer, it is better for the users. So I keep doing it. The same is true with the Ribbon. I believe they user should come first over what is easier for the developer. The Developer does it once. The Users will use it over and over. For me that makes learning to program the Ribbon a "no brainer". My 2 cents.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now