Your first requirement can not be met in RoboHelp. This would have to be done programmatically.
Your second requirement can be met in RoboHelp. There is a couple of good articles on the required strategy at:
Thanks for your reply.
For my first requirement, you suggested doing it programmatically. Does it mean, we have to build something on our own from the scratch OR is there a way once RoboHelp generates the help package, we could modify some files and get our work done ?
I am not a Developer but I'd have thought this would have to be something coded from scratch. There is definitely no way to do this out of the box with RoboHelp. All I can suggest is that you look around for code snippets that may do what you require and see if you can use them in some way.