Win a copy of Murach's Python Programming this week in the Jython/Python forum!
    Bookmark Topic Watch Topic
  • New Topic

Opening a File with the appropriate program with highlighted text  RSS feed

 
Ananth Chellathurai
Ranch Hand
Posts: 349
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hello Everybody,

Here is what I am trying to implement. I have a list of result files(docs and pdfs) for my search. I need to open the file with either Adobe or registered pdf software and for docs with MSWord or Open office Document.

I found this in google,
Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler" + filePath);
Yet to try the above.

But I need to open the document or pdf with some highlighted search words. Is there a way to achieve this? Now I do this in a crude way like reading the text and highlight the words and displaying it as html.

So some one help me on this.

Thanks in Advance.

Ananth Chellathurai
 
Ananth Chellathurai
Ranch Hand
Posts: 349
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
I am sorry. I should be posting this under some other topic.

Ananth Chellathurai
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!