Consulting

Results 1 to 2 of 2

Thread: Powerpoint and VBA

  1. #1
    VBAX Newbie
    Joined
    Jan 2012
    Posts
    1
    Location

    Powerpoint and VBA

    Hi, I have a problem and I do not know how to finish a project.
    Then, in a powerpoint slide I have two buttons and everyone has to open a pdf file in an add-on attached form. If the pdf was only one there would be no problems, but two or more than two as I open them. You place the code I use:

    Button on the slide:
    Private Sub BtnPA1_A_Click()
    Load doPDF
    doPDF.Show
    end sub

    On the form:
    Private dopdf_load()
    Dim filepdf As String

    filepdf = App.Path & "\test.pdf"
    With AcroPDF1
    .LoadFile (filepdf)
    .setShowToolbar True
    .setShowScrollbars True
    .setLayoutMode "SinglePage"
    .SetPageMode "none"
    .setView "full"
    .gotoFirstPage
    End With
    End Sub

    I do not understand why

    dopdf.acropdf1.loadfile "C:\test.pdf"

    if I put in the event of the button, the component on the form stays white and does not open the file.
    Thanks in advance for the help
    giuweb

  2. #2
    VBAX Regular
    Joined
    Feb 2012
    Posts
    36
    Location
    Can you try putting the PDFs as an object link.?

Posting Permissions

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