I need to create a webtool that takes several input values and generates a number of outputs based on complex sequences of arithmetic calculations in an Excel workbook. I am thinking of hard-coding the formulas into Javascript and creating a li开发者_Python百科ve-update user input form, but I don't want to waste my time if there is a more efficient way of doing this...I have heard of embedding live spreadsheets in webpages but realize this is only compatible with IE, which is not preferable. Does anyone have suggestions to help get me started?
You would need more than javascript to accomplish this. Despite the web guru naysayers, I made it work. You need IIS and Excel on the server. People are getting hung up on the 2nd requirement, but you have to use what is available. SpreadSheet Gear is an alternative.
But the first question you should ask yourself, do you really need a web front-end? I would explore building your front-end in excel; having a cell mapping tab that maps your UI elements to the cells of your calculator spreadsheet and have a macro copy/paste the contents from one spreadsheet to another.
The beauty of this set-up is you can run batch through your calculator spreadsheet.
You could use Formula.js, which is a JavaScript implementation of Excel's formula functions.
精彩评论