Results 1 to 2 of 2
  1. #1
    New Lounger
    Join Date
    Jan 2003
    Location
    Albuquerque, New Mexico, USA
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Printing Multiple linked PDF Files (A2K)

    I am having a problem printing linked PDF files. I have tried different methods for selecting the proper data but none seem to work.. The report shows the linked files but I am unable to have all the linked files print. I get only the last one listed. How do I make all the linked files print? I have supplied the code that I am using, Nothing tricky.


    Private Sub Command23_Click()
    On Error GoTo Err_Command23_Click

    Dim stDocName As String
    Dim stLinkCriteria As String
    stLinkCriteria = "[mpoID]=" & Me![MPOID]


    stDocName = "test"

    DoCmd.OpenReport stDocName, acPreview, , stLinkCriteria
    DoCmd.PrintOut

    Dim AVDoc As Acrobat.CAcroAVDoc
    Dim PDDoc As Acrobat.CAcroPDDoc

    Set AVDoc = CreateObject("AcroExch.AVDoc")
    Dim iNumPages As Integer



    AVDoc.Open Reports!test!Fullpath, ""

    Set PDDoc = AVDoc.GetPDDoc
    iNumPages = PDDoc.GetNumPages
    AVDoc.PrintPages 0, iNumPages - 1, 1, True, False

    Set AVDoc = Nothing
    Set PDDoc = Nothing


    Exit_Command23_Click:
    Exit Sub

    Err_Command23_Click:
    MsgBox err.Description
    Resume Exit_Command23_Click
    DoCmd.Close
    End Sub

  2. #2
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Printing Multiple linked PDF Files (A2K)

    I'm not sure I understand what you're trying to do. Your code only contains instructions to print one file.
    Charlotte

Posting Permissions

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