AllExperts > DHTML 
Search      
DHTML
Volunteer
Answers to thousands of questions
 Home · More DHTML Questions · Answer Library  · Encyclopedia ·
More DHTML Answers
Question Library

Ask a question about DHTML
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Andrew Hoffman
Expertise
I can field just about any question within this topic ranging from JavaScript to CSS, the two ingredients of DHTML. I`m very interested in the W3C and its validation rules for HTML, XHTML, and CSS, and enjoy answering questions of this type as well. I detest sleep and respond at all hours of the day or night.


Experience
Experience in the area
I've been working with DHTML and CSS for 7 years now and build/maintain websites of my own that implement DHTML navigation.

What I'm doing now
My contract with Microsoft has ended and I am working for myself once again. Please contact me for any front-end work at antibland@gmail.com

 
   

You are here:  Experts > Computing/Technology > HTML/XML > DHTML > How to display Excel file inside Internet Explorer 6 ?

DHTML - How to display Excel file inside Internet Explorer 6 ?


Expert: Andrew Hoffman - 3/16/2007

Question
Hi,

How to display Excel file inside Internet Explorer 6 ?

Thanks,
lzzzz

Answer
Unfortunately, I don't have a great answer for you.  I found this bit of code which "should" work if the server you're on houses the Excel software.  When I tried this code from my server using IE6, I got a message from IE telling me:

"Automation server can't create object"

That most likely means that my host doesn't have Excel on their server.  However, if your host does have Excel, it might work.  Try this script out--and don't forget to replace the name of your excel file in the function call (e.g., <a href="#" onclick="return startXL('Master Contact List.xls')">)

--

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>IE6 Excel Example</title>
<script type="text/javascript">
function startXL(strFile) {
  var myApp = new ActiveXObject("Excel.Application");
  if (myApp != null) {
     myApp.visible = true;
     myApp.workbooks.open(strFile);
  }
  return false
}
</script>
</head>
<body>
<a href="#" onclick="return startXL('Master Contact List.xls')">Pipeline Quality Report</a>
</body>
</html>  

Add to this Answer   Ask a Question


 
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.