Greetings,
I am attempting to search a loaded PDF document for a specific bit of text which can be located via the navigator controls but the PdfViewerElement.Find isn't able to find it.
I have included my code below which I got from the online documentation and you can see the pdf I am searching at this address http://ab.rockwellautomation.com/Programmable-Controllers/MicroLogix-1100#documentation
Is there something I am doing wrong in my code that the PDFNavigators search function can locate text but mine cannot?
Thank you!
Private Sub RadForm1_Load(sender As Object, e As EventArgs) Handles MyBase.Load Dim opt As New Telerik.Windows.Pdf.Documents.Fixed.Search.TextSearchOptions DaViewer.LoadDocument("C:\Users\Sean\Desktop\1763-um001_-en-p.pdf") opt.CaseSensitive = False opt.WholeWordsOnly = False Dim res As Telerik.Windows.Pdf.Documents.Fixed.Search.SearchResult = DaViewer.PdfViewerElement.Find("Allen", opt) If res Is Telerik.Windows.Pdf.Documents.Fixed.Search.SearchResult.NotFound Then RadMessageBox.Show("String not found") Else RadMessageBox.Show("Result found on page " & res.Range.StartPosition.Page.PageNo) End IfEnd Sub