<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=291163909-11112006><FONT face="Comic Sans MS" color=#000080
size=2>Consider upgrading to Visual Studio 2.0 Dotnet is the upgrade path
from classic ASP.</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV align=left><FONT color=#000080 size=2>John Warner</FONT></DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
javascript-bounces@LaTech.edu [mailto:javascript-bounces@LaTech.edu] <B>On
Behalf Of </B>vijaykumar bavareddy<BR><B>Sent:</B> Saturday, November 11, 2006
2:23 AM<BR><B>To:</B> javascript@latech.edu<BR><B>Subject:</B> [Javascript]
Excel API<BR><BR></FONT></DIV>function ToExcel()<BR>
{<BR>
if
(window.ActiveXObject)<BR>
{<BR> var
xlApp = new ActiveXObject("Excel.Application"); <BR>
var xlBook =
xlApp.Workbooks.Add(); <BR>
xlBook.worksheets("Sheet1").activate;<BR>
var XlSheet = xlBook.activeSheet;<BR>
xlApp.visible = true;
<BR> var
hdrcol=document.getElementsByName("hdrcol"); <BR>
var
nRowsCount=pshipGrid.getRowsNum();<BR>
var
nColCount=pshipGrid.getColumnCount();<BR>
for(var P = 1; P<=nRowsCount ;
P++)<BR>
{<BR> for(var Q
= 1; Q < nColCount; Q++) <BR>
{<BR>
if (P==1)<BR>
{<BR>
XlSheet.cells(P ,Q).value =
hdrcol.item(Q).innerHTML;<BR>
}<BR>
var cell=pshipGrid.cells(P,Q);<BR>
XlSheet.cells (P +1,Q).value =
cell.getValue(); <BR>
}<BR>
}<BR>
XlSheet.columns.autofit; <BR>
}<BR>
}//end function <BR><BR>Hi above code am using to
create Excel document for grid data using javascript and Activex object.. but
problem is i just want do this without using Activex object(
Excel.Application).. and it should work in both IE and FF in Windows
OS..<BR></BLOCKQUOTE></BODY></HTML>