Results 1 to 6 of 6
  1. #1
    jre1229 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jan 2012
    Posts
    30

    Access 2003 Report - Printer Settings

    I currently have the following code



    Code:
     
     Dim stDocName As String
        stDocName = "rptProduct"
        DoCmd.OpenReport stDocName, acNormal, , "[Autonumber] = " & Me.AutoNumber
        DoCmd.OpenReport stDocName, acNormal, , "[Autonumber] = " & Me.AutoNumber
    The problem I am running in to is that the printer it is using, has the right settings in the control panel's printer settings but the wrong setting in Access. I want to be able to print without going to the preview and changing the settings every time. It's a label printer, and the length and width settings are wrong. I also have to click "Use Printer Setting" on the advanced setup tab in order for it to work correctly. Any ideas on how to code these settings?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    IIRC, each report in design view will remember its own setup settings. Have you set the settings in design view yet and saved the report?

  3. #3
    jre1229 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jan 2012
    Posts
    30
    I can't remember if I tried that or not, I will try it though and let you know how that goes. I know I changed the settings after the report was generated but I am not sure if I did in design view.

  4. #4
    jre1229 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jan 2012
    Posts
    30
    Ok, I opened the report in design view, when to File-Print, changed my settings and printed it. I closed the designer, opened the report in preview mode, went to File-Print and the settings were back to the original settings, which were wrong.

  5. #5
    jre1229 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jan 2012
    Posts
    30
    Nevermind, I went into the page setup and changed the settings there, saved it and it saved the settings! Great! Thanks for the help RuralGuy!

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Outstanding! Thanks for posting back with your success and solution.

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

Similar Threads

  1. Setting Printer when Printing Report
    By russ0670 in forum Reports
    Replies: 3
    Last Post: 05-12-2010, 09:45 AM
  2. Printing to an intermec printer from access
    By dkalsow in forum Programming
    Replies: 3
    Last Post: 12-16-2009, 06:11 PM
  3. Access 2003 Report Limits?
    By Stirling Steve in forum Reports
    Replies: 0
    Last Post: 08-09-2009, 02:23 AM
  4. Replies: 3
    Last Post: 05-20-2009, 04:58 PM
  5. Report settings at runtime in Access 2007
    By soringc in forum Programming
    Replies: 0
    Last Post: 11-22-2007, 10:04 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