Results 1 to 9 of 9
  1. #1
    matey56 is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jul 2020
    Posts
    171

    Exporting report to PDF

    Hi all,
    I have a report in Access and I would like to add a button that will export it to a PDF in 11x17 size. Is that possible? I can export to PDF no problem, but it's the size that I'm not sure about. Thanks

  2. #2
    Minty is online now VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,144
    I think you simply set the paper size for the report, and the pdf should mimic it?
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  3. #3
    matey56 is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jul 2020
    Posts
    171
    Quote Originally Posted by Minty View Post
    I think you simply set the paper size for the report, and the pdf should mimic it?
    That doesn't work. I think the answer might be to go to print preview.

  4. #4
    matey56 is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jul 2020
    Posts
    171
    I set the paper size of the report to 11x17 and landscape. When I export it to PDF on my machine it fits the report to one page. When anyone else exports it the page is cut into 2. What am I missing?

  5. #5
    Minty is online now VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,144
    It may be to do with their default printer settings.
    Did you set it to a specific printer or just leave it as default?
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  6. #6
    matey56 is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jul 2020
    Posts
    171
    Quote Originally Posted by Minty View Post
    It may be to do with their default printer settings.
    Did you set it to a specific printer or just leave it as default?
    I don't have it set to any printer. I'm just telling it to export to PDF, save it to their desktop and open it. It works for me and another user I tested with, but for a different user it opens spread across 2 pages. It has to be some Adobe settings but I'm not sure which.

    Code:
    DoCmd.OutputTo acOutputReport, "rpt_Submission_Planning", acFormatPDF, "C:\Users\" & Environ("username") & "\Desktop\Submission Planning Report.pdf", True

  7. #7
    Minty is online now VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,144
    So the same file opened on different machines behaves differently?
    Or the locally generated file is different?

    e.g. If you create the file on your machine and it's fine, but you email it to your colleague and they open it and it's not OK?
    In the latter case it's definitely a local setting.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  8. #8
    matey56 is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jul 2020
    Posts
    171
    So if I click the export to PDF button it opens the PDF with the report fit to one page (desired outcome). If my colleague clicks the button it opens the PDF on two pages. If i send her the one page PDF I generated she sees it as one page.

  9. #9
    Minty is online now VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,144
    Okay, that would seem to indicate a setting within Access on her machine.
    Or possibly a default windows setting for paper size or margins on her machine.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

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

Similar Threads

  1. Exporting Chart report to PDF
    By RickK in forum Reports
    Replies: 4
    Last Post: 07-27-2016, 12:18 PM
  2. Exporting a report to Excel
    By aaslezak in forum Import/Export Data
    Replies: 1
    Last Post: 05-19-2015, 02:40 PM
  3. Exporting report into powerpoint
    By Thompyt in forum Reports
    Replies: 1
    Last Post: 02-13-2015, 03:27 PM
  4. Exporting w sub report
    By derek7467 in forum Reports
    Replies: 5
    Last Post: 02-21-2014, 03:51 PM
  5. Exporting report to PDF
    By jgelpi16 in forum Reports
    Replies: 1
    Last Post: 08-06-2011, 08:58 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