How to Control an Adobe Reader Serach from VB NET 2005
Posted on 2007-11-27
I have a program written in VB NET 2005 and from this program I would like to display a user's manual in PDF and have it automatically search for keywords, etc. The search function is rather good in Adobe reader.
I am using the following object....
Dim WithEvents cadobehelp As New AxAcroPDFLib.AxAcroPDF
This provides functions to go to one location in the Page using Destinations (setnamesdest) (more on that later), but there is no "search" function.
So I tried to use senkeys and the equivalent, but it just is not working properly and it is a hack anyway.
Does anyone have any workaround to get the AxAcroPDFLib.AxAcroPDF object to perform a search on the document loaded? Any suggestions?
Also, the PDF document that is being generated is from word using Acrobat. This works well with bookmarks, etc, but one can not add destinations this way. Any suggestions here would be appreciated.
This seems like a pretty straight forward thing to do (have a user's manual in PDF and then have soe automatic searching feature) but so far this has not been easy to do.
Thanks in advance.