Results 1 to 20 of 25

Thread: Solved: How to auto print .PDF files

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    VBAX Newbie
    Joined
    Apr 2009
    Posts
    5
    Location
    Incase Adobe is already installed on your machine simply use ShellExecute API.

    Put this on top of all declarations

    Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, _
    ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, _
    ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

    and simply use as

    ShellExecute 0&, "open", fileFullPath, 0, "Directory", 0

  2. #2
    VBAX Master
    Joined
    Jul 2006
    Location
    Belgium
    Posts
    1,285
    Location
    Quote Originally Posted by Agni1978
    Incase Adobe is already installed on your machine simply use ShellExecute API.

    Put this on top of all declarations

    Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, _
    ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, _
    ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

    and simply use as

    ShellExecute 0&, "open", fileFullPath, 0, "Directory", 0
    The question of the original poster was ... PRINT pdf files. So you need to change the "open" command to a "Print" command.

    More details regarding this subject can be found here : http://www.xcelfiles.com/ShellExecuteA.html

    Charlize

  3. #3

    autoprint

    Charlize[/QUOTE]

    Clicking Print command for each file is really a daunting task when there are hundred of files to be printed. The better alternate is to use FolderMill for automatic Printing PDF Files and Folders. I got it from foldermill.com It can print the entire Folders without any hassle. It really saves a lot of time while i can do other tasks.

  4. #4
    VBAX Newbie
    Joined
    Aug 2015
    Posts
    1
    Location

    Bulk PDF Printing

    Hello,

    I suggest PrintConductor for Bulk PDF Printing if u have to print hundreds of PDFs. It lets you select the entire folder at once and print it all. PrintConductor is a good printing management software. Search PrintConductor more info

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •