writing to excel files

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.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 23rd, 2007, 18:40
New Member
Join Date: Aug 2007
Location: washington, dc
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote

  #2 (permalink)  
Old Aug 23rd, 2007, 20:02
c010depunkk's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to c010depunkk
Re: writing to excel files

Where is the Excel file opened? In another program?
Reply With Quote
  #3 (permalink)  
Old Aug 23rd, 2007, 21:00
New Member
Join Date: Aug 2007
Location: washington, dc
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #4 (permalink)  
Old Aug 23rd, 2007, 21:21
c010depunkk's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to c010depunkk
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.
Reply With Quote
  #5 (permalink)  
Old Aug 23rd, 2007, 22:01
New Member
Join Date: Aug 2007
Location: washington, dc
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #6 (permalink)  
Old Aug 24th, 2007, 06:06
c010depunkk's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to c010depunkk
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.
Reply With Quote
  #7 (permalink)  
Old Aug 24th, 2007, 17:29
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
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)
Reply With Quote
  #8 (permalink)  
Old Aug 24th, 2007, 19:28
c010depunkk's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to c010depunkk
Re: writing to excel files

Quote:
Originally Posted by alexgeek View Post
Isn't this more application programming than anything web design/development related?
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.
Reply With Quote
Reply

Tags
excel

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 10:47.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43