More than likely, no one has an answer for you.
You'll probably have to get some third party components to do what you need. I know there are PDF components that can modify existing documents such that you might be able to achieve the "search and highlight" goal, but I don't know about CHM files. Handling the DOC files might be achievable with an API link to MS-Word.
-
Peter