Poojasrivastava 1 Newbie Poster

hi ,
actually i am developing a web application in asp.net using c#.
i have come across a requirement to read a excel file without going to the server . i need to use javascript for the same.

so i need help on javascript function to read from excel file.
i tried a lot many codes available but nothing seems to be working...
so somebody help me...
one of the codes i tried is:

<script language="javascript">
function readFromExcel()

{

var excel = new ActiveXObject("Excel.Application");

var excel_file = excel.Workbooks.Open("C:\\Book2.xls");

var excel_sheet = excel_file.Worksheets("Sheet1");

return data;



}
<body>
<input type="button" onclick=readFromExcel() value="read"/>
</body>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.