Ask a Question related to ASP, Design and Development.
-
David Alliet #1
ASP & Excel (problem reading cells)
Hello,
I'm having a bit of a problem with ASP and Excel. A client has developed
his own program, which calculates alot of financial stuff, in excel. I'm
doing his websites and he has requested the ability to do the same thing
his program does, but through the website. Because his excel program is
a dozen worksheets (all packed with endless rows of formulas) long, i
thought it'd use excel as backbone of the webprogram (don't worry, the
website doesn't get much hits and i have made sure by copying the xls
file with the FSO and giving it an unique name that nobody can read/edit
the same xls file at the same time).
The two most vital things i do in ASP is updating the xls file with user
inputted variables, and then reading the calculations of the xls file
and write that out to the client. I use ADO and the ODBC driver for
Excel. I however can't seem to read the cells that contain complex
formulas, specially financial formulas like these: =PMT($F11;$D$4;-$D$2)
in which the function arguments are values i previously inputted in the
worksheet using ASP. If i open the xls file manually and look what's in
this cell i see the output of the calculation just like it's intended.
When i read this cell through code it displays 0. I also have similar
problems with the IF() function.
I've tried with blocking the cells, unblocking the cells, protecting the
worksheet, everything i could think of really. Does anybody know how i
can get to the output of these type of formulas?
thanks,
David
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
David Alliet Guest
-
Reading Cells in Excel Worksheet
Users upload an excel spreadsheet and I then read the spreadsheet . I'm having trouble calling certain cells in the spreadsheet. Here is my code;... -
Reading Excel Worksheet
I need some help on reading an Excel worksheet. A user uploads a Excel Worksheet and I want to be able to read a certain worksheet 'E1'. I then... -
Reading/Writing Hash to Excel
Hello All, Thanks to John W. Krahn and many others for their assistance in writing a script that will read a fixed length text file. I have... -
reading formated report, excel, OLE::32
Hello All, I was wondering if anyone could offer some pointers on extracting data from a text file that is formated. I need to extract the... -
[PHP] Reading excel files
Is there a way to read excel files for parsing with PHP? I see there is a PEAR package for writing excel files, but I want to be able to parse...



Reply With Quote

