Solved

Force to print report on single side in access

Posted on 2010-08-18
7
848 Views
Last Modified: 2013-11-28

I have a form command button to print a report and even thought the printer seting is single side print it still print duplex when clicking the button. The command is as below.

DoCmd.OpenReport "reportname", acViewNormal

I dont see anywhere why it should print doeble sided, Is there a code to force it as single sided?
0
Comment
Question by:tvae
[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
  • 3
7 Comments
 
LVL 84
ID: 33465818
Duplex is a function of the printer, not Access, While you may be able to control that from code, it can be difficult to do.

What version of Access are you using? Access 2002+ exposes the Printer object, which you may be able to use:

http://msdn.microsoft.com/en-us/library/aa139946(office.10).aspx
0
 

Author Comment

by:tvae
ID: 33465927
Yes using access 2002. The printer is set to single but dont know why it's printing double sided
0
 

Author Comment

by:tvae
ID: 33466343
I have added this rule but still print duplex.

    Dim rpt As Report
    Dim prtnew As Printer
    DoCmd.OpenReport ReportName:="rptPickListALLPONumber", View:=acViewNormal
    'stDocName = "rptPickListALLPONumber"
    Set rpt = Reports!rptPickListALLPONumber
    Set prtnew = rpt.Printer
    prtnew.Duplex = acPRDPSimplex
0
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 500 total points
ID: 33466712
Another Long shot...

1. Open the Report in design View
2. Make a small change to the design of the report (move a control a little)
3. Go into Page Setup and manually change the printer properties to print Single sided.
4. Save the Report.
5. Run the Compact and Repair Utility
6. Test the report.

The theory behind this is, by changing the report slightly, then saving the report that this will "Force" the printer settings to be saved with the report.

This worked for a prior question, I guess it is worth a shot here.

Like LSM, I have seen the code to do this, but he can probably dig it up for 2002 access db files...

;-)

JeffCoachman
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 33466725
^ oh and if you ty this, use the simple code to open the report:
    DoCmd.OpenReport "reportname", acViewNormal
0
 

Author Closing Comment

by:tvae
ID: 33467107
omg..that was it.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 33467685
;-)
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
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…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

739 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