views:

549

answers:

1

Problem: When dealing with web-applications that require grid-based input (but is not a fullblown spreadsheet like Google's) there is a common problem. Either the web-GUI sucks, or it is tied behind some heavily-specialized API that takes way too much training and time to use effectively (not to mention the price tag tends to be high for these kinds of things).

Question: Assuming all the target users have Excel or OpenOffice (or can be told to get a copy) has anyone out there tried using a spreadsheet as an input form for a live web application?

Scenario: User X comes to your website, she gets to a page where she downloads a spreadsheet to continue some complex number crunching in the midst of using your webapp. When she is done, she presses a button on your specially constructed spreadsheet, and the spreadsheet itself submits its payload via POST to your website, then the website does whatever with the recently-crunched numbers.

Motivation: The motivation for this question stems from huge frustration with all the various "grid control" widgets out there for use in web pages. They either are not enough, or not sufficiently capable of being "embedded" as a control in a web page.

+2  A: 

This is common practice for data-heavy intranet applications. In the past, you would have used VB for Applications. Today, the Open XML SDK offers a very elegant way of hooking into the open and close events of the document. Excel will execute your managed code upon open (to populate the spreadsheet) and upon close/save (to extract the data from the spreadsheet and write it back to the database). The Excel document can be served from a Web server that does not need to have Office installed.

cdonner
thanks for the answer, any links to examples by chance?
dreftymac
Not really. My current client uses an Excel spreadsheet to manipulate job applications that come in from the web site, before they get fed into the HR system for onboarding. I can't give you any more information, though. I am working with the Open XML SDK right now, but don't have much to show yet.
cdonner
Ok, what little I have done has been something of a disappointment. I thought the whole point of "Open XML" was to get rid of the need for an SDK in the first place.
dreftymac