Solved

Printing Multiple Reports in order with Multiple Copies

Posted on 2011-09-09
6
203 Views
Last Modified: 2012-05-12
I have 5 reports that need to be printed in order.  I would like the user to click a button on a form that would print the reports in order and I would like the print dialog to come up so that the user can choose the printer, the number of copies and other printer options.

Can this be done?

Jeff
0
Comment
Question by:wellesleydpw
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 36512062
DoCmd.OpenReport "Catalog", acViewPreview
DoCmd.RunCommand acCmdPrint
'Repeat for the other reports
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 250 total points
ID: 36512067

Sorry, more generic:

DoCmd.OpenReport "YourFirstReport", acViewPreview
DoCmd.RunCommand acCmdPrint
'Repeat for the other reports
0
 

Author Comment

by:wellesleydpw
ID: 36512267
boag2000,
that prompts the user for each report.  Is there a way that the user will be prompted once and all the reports can print with those settings?
Jeff
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 36512414
<user will be prompted once and all the reports can print with those settings?>
This requirement was not explicitly stated in your original post.

My post does what was requested.
Your new specifics will require a far amount of custom coding

So perhaps another Expert will chine in

JeffCoachman
0
 
LVL 26

Assisted Solution

by:Nick67
Nick67 earned 250 total points
ID: 36570706
As @boag2000 says, while this is doable it is not easy.
The print dialog box that comes up will set properties that can then be hard for the Access VBA to find and save through the next printings.
Access 2002+ do have a Printer object that has all of the settings your heart could desire
It would be possible to create a custom form that presented the same combos textboxes and radio buttons as the built in form.
It could then tweak the Printer object through successive printings.

Another possibility is to open a popup form.
The end user enters a number of copies desired
The end user then chooses File|Page Setup and gets everything just so
On the popup form, the user clicks a done! button, and the report is hidden
Rinse and repeat for the other four reports
When the last report is end-user tweaked a final command button does a loop through the number of copies, issuing a
        DoCmd.SelectObject acReport, "SomeStringThatGivesEachReportNameInTheLoop"
        DoCmd.PrintOut acPrintAll
for each hidden report.
It the closes all the reports, not saving changes.

But that, too, is complex and prone to end user screwup
0
 

Author Closing Comment

by:wellesleydpw
ID: 36923617
It seems as though there's no easy solution here.  Thank you for your help.
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

710 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