This is a discussion on "writing to excel files" within the JavaScript Forum section. This forum, and the thread "writing to excel files are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
writing to excel files
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
writing to excel files
Hello:
I would like to use javascript to write to an already opened Excel file. Each time a button is clicked, a value is written to the same place on this excel file. I need to do this without opening, saving, and closing the file each time. Thank you. |
|
|
|
||||
|
Re: writing to excel files
Where is the Excel file opened? In another program?
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
|||
|
Re: writing to excel files
The file is just opened in Excel. I have coded a simple tool in Excel that has a GUI and buttons that a user clicks through. At some point, I call up google maps, and using javascript, write some values back to the Excel file. I want this to be seamless, that is why I do not want to close the Excel file before I present the google maps to the user.
|
|
||||
|
Re: writing to excel files
You don't think that two processes can access the same file at once: Windows file handles - only one process can have a handle to a file at once.
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
|||
|
Re: writing to excel files
Thanks. I suspected so. Can you help me with javascript code to find the pathname of a currently opened excel file, if I supply the filename? I ask because I will use javascript to write to another unopened Excel file, but I want to make sure it is in the same directory as the main Excel file of interest.
|
|
||||
|
Re: writing to excel files
Not at all sure if this is possible. Javascript can't create files on the client machine - security issue. Maybe you could do this with some kind of server-side language like PHP or ASP and then let the user download the file. If I were you I would consider writing a program that does this and not try to do it out of the browser.
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
||||
|
Re: writing to excel files
Isn't this more application programming than anything web design/development related?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: writing to excel files
Yop, that it is. A C# application would be my solution for this. There are some really nice classes for creating and writing Excel files.
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
![]() |
| Tags |
| excel |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| reading / writing files | alexgeek | Webforumz Cafe | 0 | Oct 8th, 2007 01:40 |
| Anyone know much about Excel | AdRock | Webforumz Cafe | 8 | Sep 29th, 2007 19:58 |
| Export to Excel | kebi | Classic ASP | 1 | May 3rd, 2006 07:32 |
| Excel to ASP... | courtjester | Classic ASP | 14 | Sep 27th, 2004 20:44 |