|Impressario for Director||All||Search||All|
SummaryThe Adobe® PDF Library, underlying Impressario treats certain characters, including hyphens (-), apostrophes (') and parentheses, as word delimiters. Therefore the Impressario Find method cannot find and highlight words that contain those characters.
The workaround solution is to add a <space> character after the hyphen/apostrophe/parenthesis character in your search string, and pass that to the Impressario Find method. This workaround implies that the Impressario Find dialog box cannot be used. If you want to enable the end-user to enter a search string, you need to create your own Find dialog box and parse the search text entered so that you can replace those word-delimiter characters.
If your user enters the search text: "ABC-123", you should call
sprite(IMPSprite).Find("ABC- 123", #ShowDialog:False)
For an example of how to create your own Find dialog box, see the knowledgebase article named: How to implement the Find dialog as a MIAW