Edit Excel using Javascript

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Oct 2009
Posts: 5
Reputation: kosofi is an unknown quantity at this point 
Solved Threads: 0
kosofi kosofi is offline Offline
Newbie Poster

Edit Excel using Javascript

 
0
  #1
Oct 8th, 2009
need to read and write to xls (excel sheet) using javascript
read and write should be to specific cell in that sheet
if its possible , please help do it
thanx .
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 348
Reputation: Troy III will become famous soon enough Troy III will become famous soon enough 
Solved Threads: 42
Troy III's Avatar
Troy III Troy III is offline Offline
Posting Whiz
 
1
  #2
Oct 8th, 2009
Originally Posted by kosofi View Post
need to read and write to xls (excel sheet) using javascript
read and write should be to specific cell in that sheet
if its possible , please help do it
thanx .
you will need Exel activeX object for this.

This is a demo code from MSDN:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. var ExcelApp = new ActiveXObject("Excel.Application");
  2. var ExcelSheet = new ActiveXObject("Excel.Sheet");
  3. // Make Excel visible through the Application object.
  4. ExcelSheet.Application.Visible = true;
  5. // Place some text in the first cell of the sheet.
  6. ExcelSheet.ActiveSheet.Cells(1,1).Value = "This is column A, row 1";
  7. // Save the sheet.
  8. ExcelSheet.SaveAs("C:\\TEST.XLS");
  9. // Close Excel with the Quit method on the Application object.
  10. ExcelSheet.Application.Quit();
Last edited by Troy III; Oct 8th, 2009 at 1:21 pm.
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 5
Reputation: kosofi is an unknown quantity at this point 
Solved Threads: 0
kosofi kosofi is offline Offline
Newbie Poster
 
0
  #3
Oct 8th, 2009
Originally Posted by Troy III View Post
you will need Exel activeX object for this.
[/CODE]
is it impossible to do it without that active x?
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,620
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 468
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human
 
1
  #4
Oct 8th, 2009
> is it impossible to do it without that active x?

AFAIK, yes, it's not possible.
I don't accept change; I don't deserve to live.
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 5
Reputation: kosofi is an unknown quantity at this point 
Solved Threads: 0
kosofi kosofi is offline Offline
Newbie Poster
 
0
  #5
Oct 8th, 2009
Troy III , thank you , that was helpful .
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC