• 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 an excel file outside IE using Javascript/Html

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

My actual requirement is, I want to open an excel file separately invoking MSExcel. And I need to do it only through Javascript or Html code.

I tried the below code to open excel file. But it's opening the Excel file in IE and that too with an error saying like "file not found in the path."

- Can anyone please let me know what is the issue with the below code
and how to open an Excel file outside of IE through Javascript or html code?

1. This code us in the HEAD part of HTML document:

function win() {
window.open("xyz.xls",null,"height=200,width=200,left=80,top=80,location=no");
}

2. This code us in the BODY part of HTML document:

& It a href="C:\MainDocs\AllReports\Documents\xyz.xls" target="_blank"
onKlick= "javascript:win();" & It Open Here / & It

& It - is used for angle brackets

Thanks in advance for your time and help.
 
She still doesn't approve of my superhero lifestyle. Or this shameless plug:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic