Results 1 to 3 of 3
  1. #1
    EddieN1 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    313

    Setting Default Printer Properties with VBA Cocde

    I have a need in Access to prompt the user for Duplex Printing and Punch holes at the top when the report is requested. Since the report goes to the Default Printer, I have found a way to dynamically modify the Default Printer when the report is started and set it back when the report is done. Now, the user wants to be able to dynamically specify Duplex printing and, if the printer supports it, Punch holes at the top of the page. Is there a way I can modify the Default Printer properties accordingly before the report is called and then set them back to what they were originally after the report is done. Thanks, Eddie

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525

  3. #3
    EddieN1 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    313
    Better idea is to define multiple "printers" for the same physical device. Each "printer" has a descriptive name, such as "MainDuplex", and has its own properties, i.e., duplex. When the operator gets the list of printers, he/she selects the type of printing he/she wants. I suggest you name the "printers" in a manner that your program can identify if it is a duplex printer, perhaps by including the string "Duplex" in the name, so that the reports will avoid printing the first page of a new section on the back of the last page of the previous section.

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

Similar Threads

  1. Select Default Printer
    By pkstormy in forum Code Repository
    Replies: 4
    Last Post: 03-10-2015, 09:26 AM
  2. Replies: 0
    Last Post: 09-22-2014, 07:07 AM
  3. Replies: 3
    Last Post: 02-25-2014, 11:46 AM
  4. Print to Default Printer
    By bsc0617 in forum Access
    Replies: 7
    Last Post: 10-10-2013, 07:46 AM
  5. Setting Printer when Printing Report
    By russ0670 in forum Reports
    Replies: 3
    Last Post: 05-12-2010, 09:45 AM

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