• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Opening a .xls sheet outside IE

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am a beginner in Java. Working on one html page. On click of an hyper link a .xls file gets open which is stored in C:\. This excel file is opening in IE which I dont want. The .xls file should open outside of the IE, in an excel sheet.

I searched in net. However not able to get a good solution.
If anybody has any idea how to do it please suggest.

Thanks in advance.
 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On click of link what are you calling?
If you are calling a servlet to download/open that file, then set response headers like:

And then using FileInputStream read the file contents, write them on response using response.getOutputStream() and call write() method on it.

Thanks
Deepa

[ October 17, 2007: Message edited by: Deepa More ]
[ October 17, 2007: Message edited by: Deepa More ]
 
Shubha Krishna
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the explanation Deepa! Hope it will work.
reply
    Bookmark Topic Watch Topic
  • New Topic