Click here to Skip to main content
15,887,175 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello
VB
Private Sub lstdocument_SelectedIndexChanged(sender As System.Object, e As System.EventArgs) Handles lstdocument.SelectedIndexChanged
        Dim file As String = Me.lstdocument.SelectedItem.ToString()
        AxAcroPDF1.LoadFile(file)
    End Sub

I am using the above code to select a .pdf file from a listbox and displaying it on the pdf reader but it is not displaying anything.
Posted

Did you set application visible to true
 
Share this answer
 
Comments
virajdaw 6-Mar-13 6:35am    
yes i've just checked, it is true !
but not displaying it
NewPast 9-Mar-13 13:53pm    
I suggest to try getobject function instead
You may view your pdf file with the aid of download pdf repair and recovery

http://www.pdf.repairtoolboxx.com
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900