Results 1 to 6 of 6
  1. #1
    TOPSie is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Mar 2021
    Posts
    108

    Blank pages in report

    I am at my wit's end, so please treat me kindly and offer me some suggestions.
    I have a very complex report which prints an Invoice (Report) and in some circumstances adds a Statement ( a sub report within the Invoice report).
    The report is set to print on A5 paper. And by some magic it is set to double sided. Invoice on the front, Statement on the back

    Last week it printed as expected, but following some issues with printers it now prints single sided.


    If there is just an Invoice we get the Invoice and a blank sheet, If a statement is present we get Invoice, blank sheet, Statement (3 pieces of paper).

    (If I manually create a 2 page Word document and set the print option to double sided then that's what I get - so the printer is still capable of doing double sided.

    I have seen similar issues when certain elements of a report stretch outside of the paper size. But afaia the report design has not altered. I have even recreated the report by copying in the report from an old version of the code (predating this issue)

    I don't know where to look next, so please offer me some suggestions.

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    perhaps it is to do with the default printer settings - in windows, go to printer and check the options

    If there is just an Invoice we get the Invoice and a blank sheet
    also check the printer settings for default paper size

  3. #3
    TOPSie is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Mar 2021
    Posts
    108
    I have tried everything I can with Printer Settings (from Windows). Just done it again on my test system (which has a different printer) - set every option I could find to double sided, but all comes out single sided. But at least this time there are no blank pages, so perhaps the report layout is correct and it does fit the page.
    So still struggling - thanks for the suggestion.
    My underlying problem is that I am not sure what the real issue is - so it is hard to describe it :-(

  4. #4
    davegri's Avatar
    davegri is offline Excess Access
    Windows 11 Access 2019
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,413
    Don't know if it will help, but here's VBA to set printer to duplex for the indicated report (strDoc)

    Application.Reports(strDoc).Printer.Duplex = acPRDPHorizontal 'acPRDPVertical for vertical flip
    Last edited by davegri; 02-22-2024 at 09:01 AM. Reason: change comment

  5. #5
    TOPSie is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Mar 2021
    Posts
    108
    The (Invoice) Report is "printed" at over a dozen places in the code (I didn't write it, I inherited it). But at all these places in the code there is no "tweaking" of the Printer objects, just a simple
    Code:
    DoCmd.OpenReport "RepInvoice", acViewNormal, ,
    with a single parameter of invoice number. So the code relies entirely on the Default printer settings in Windows (it uses the Default printer - not a named one).

  6. #6
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Print to PDF as a test and see how many pages.
    Sounds to me like, your margins need to be decreased.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Label print blank pages
    By uoghk in forum Reports
    Replies: 4
    Last Post: 03-22-2023, 06:41 AM
  2. Replies: 1
    Last Post: 05-25-2013, 11:19 AM
  3. Blank Pages in my Reports
    By bkvisler in forum Reports
    Replies: 2
    Last Post: 08-21-2011, 03:15 PM
  4. Blank pages between report pages
    By jonsuns7 in forum Reports
    Replies: 2
    Last Post: 10-01-2009, 05:06 AM
  5. REPORTS BLANK PAGES/I can't remember
    By SpotoR1 in forum Reports
    Replies: 0
    Last Post: 03-03-2009, 07:28 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