Solved

Force to print report on single side in access

Posted on 2010-08-18
7
701 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
  • 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of utilizing SQL Server functions 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 Microsoft Ac…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

914 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

13 Experts available now in Live!

Get 1:1 Help Now