Results 1 to 4 of 4
  1. #1
    kdbailey is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2012
    Posts
    228

    Printing an open report and turning off the "2 sided" option.

    I am trying to create a button on a report that prints out the report. The default option for 2 sided printing is true on all computers at the office. I am looking for the command how to do this, whether I have to find each computer's default printer options or what.

    Anybody have an idea how to adjust this besides going into printer settings and changing the defaults manually.

    Access 2007

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    In the macro or code that prints the reports
    Run a function that sets the DUPLEX setting:

    Code:
       'acPRDPSimplex = 1
       'acPRDPHorizontal =  2
       'acPRDPVertical = 3
    
       Select Case s
        Case "": 'nothing to do
        Case "1": rpt.Printer.Duplex = acPRDPSimplex
        Case "2": rpt.Printer.Duplex = acPRDPHorizontal
        Case "3": rpt.Printer.Duplex = acPRDPVertical
       End Select

  3. #3
    kdbailey is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2012
    Posts
    228
    I need some clarification by what you mean with the DUPLEX setting.

    How do I lead into the code you provided? What is "s"?

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    If you are using code on the button CLICK event,
    set the duplex mode before printing

    Code:
      ''just set:
    Printer.Duplex = 1    'non duplex mode
      ''then
    docmd.openreport  rptMyReport

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 15
    Last Post: 08-20-2013, 07:50 AM
  2. Export "Query or Report" to a "Delimited Text File"
    By hawzmolly in forum Import/Export Data
    Replies: 3
    Last Post: 08-31-2012, 08:00 AM
  3. Replies: 1
    Last Post: 08-23-2012, 08:32 AM
  4. Replies: 3
    Last Post: 08-02-2011, 09:25 PM
  5. Replies: 4
    Last Post: 12-03-2010, 04:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums