
Opening pdf file at bookmark from visual basic
I am trying to open a local pdf file at a bookmark from
Visual Basic and have not found a method that seems to work. I have tried the
following:
1) Using ShellExecute. This seems to work as long as I am opening a
remote file. If the file is local, it opens to the first page. I
cannot seem to navigate to the bookmark programmatically.
2) Using Pdf.LoadFile. I am using the version of the ocx file from
version 4.0. When I execute LoadFile, Acrobat initializes, but it
never displays the file. (I don't know what happens because I don't
get an error message. However, if I print the return value, it is
-1.) This may be pointless because I don't see a method for
navigating to a bookmark once I load the file.
Any help with this would be greatly appreciated.
Thanks,
Steve Bray