Results 1 to 4 of 4
  1. #1
    Kody_Devl is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2017
    Posts
    22

    Printing PDF from Access - Choose number of pages with vba

    Hi All,



    I am using Access vba to print large numbers of PDF documents. I currently have two identical documents to print.
    1 of the documents has 4 Pages
    1 of the documents has 5 Pages (1-4 are the same in both documents)

    I want to use the 5 Page document for both scenarios that I am processing. Then, from 1 document I could print 4 pages or 5 pages dynamically.

    This is what I am using to print the PDFs but it prints ALL of the pages.

    CreateObject("Shell.Application").Namespace(0).Par seName(strTO).InvokeVerb ("Print")

    My question is, how can I dynamically select the number of pages to print (ie 1-4 or 1-5 pages)?

    Many thanks

    Kody_Devl

  2. #2
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,793
    Apparently possible. If you don't get a direct solution here, suggest you research something like ms access vba choose pdf print page range

    I didn't seem to get a whole lot of relevant results with that, so maybe it needs tweaking or maybe it's not a popular topic. I found this but it seems inconclusive.

    http://www.vbaexpress.com/forum/show...n-pages-of-pdf
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    ssanfu is offline Master of Nothing
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I did a search (DuckDuckGo) using criteria "print pdf from command line windows 10". One of the hits was this StackOverFlow post which led to PDFtoPrinter: Command-line PDF printing
    It seems to be able to specify the page print range.....


    Good luck with your project.....

  4. #4
    Kody_Devl is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2017
    Posts
    22
    Thanks

    I will check it out

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

Similar Threads

  1. Replies: 1
    Last Post: 07-10-2017, 10:07 AM
  2. Group header not printing on all pages
    By khughes46 in forum Reports
    Replies: 12
    Last Post: 06-13-2014, 11:40 AM
  3. Replies: 9
    Last Post: 06-26-2013, 08:28 AM
  4. Replies: 1
    Last Post: 03-08-2013, 03:05 PM
  5. One page report is printing as 666 pages
    By JackieEVSC in forum Reports
    Replies: 3
    Last Post: 12-20-2011, 10:10 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