Is it possible opening a pdf-document using Acrobar Reader in Visual Basic?
Printable View
Is it possible opening a pdf-document using Acrobar Reader in Visual Basic?
yup,
install acrobat reader and look in the ActiveX folder under the reader folder in the acrobat directory (if that makes any sense) there you will find the type library, add a reference to it in your vb project and away you go.
How do I open the file?
Great, thanks, but what if I want to open the Acrobat Reader like opening the winhelp?
Code:Private Sub Command4_Click()
WinHelp Me.hwnd, App.Path & "\Help_reducers.hlp", 9&, 0&
End Sub
Every different library has it's own syntax i'm afraid, opening a pdf may not be similar to opening a winhelp file, the best thing to do is hit f2 and browse the library in the object browser and find out how to do this, I only tried it on an ad-hoc basis, I know about as much as you do - that it's possible.