Ok, in response to a user submitting a form I've managed to create an Excel file on the intranet server, in a "publicly"-accessible directory. What I have managed is to, via an ADODB stream, sent the file to the user, so things come off pretty seamless: fill out the form, click the button, get a dialog asking if you want to open or save the spreadsheet.
But, what is of course happening is the user isn't opening the file on the server, they're being sent a completely different copy of the file (with a "[1]" in the name), which if they choose to open, modify, and save, will just end up in their temp internet files directory (which they can't easily tell). If they later go to open it on the server, it won't (of course) have any of their changes.
So, does anyone know of any kind of headers or or client-side VBScript or what-have-you that I can send after generating the spreadsheet that will actually tell the browser to open that exact file on the server? It's easy enough to provide a page with a link to the file that actually opens the real file, but I want the seamlessness of submitting the form and getting the real file instantly in response.
But, what is of course happening is the user isn't opening the file on the server, they're being sent a completely different copy of the file (with a "[1]" in the name), which if they choose to open, modify, and save, will just end up in their temp internet files directory (which they can't easily tell). If they later go to open it on the server, it won't (of course) have any of their changes.
So, does anyone know of any kind of headers or or client-side VBScript or what-have-you that I can send after generating the spreadsheet that will actually tell the browser to open that exact file on the server? It's easy enough to provide a page with a link to the file that actually opens the real file, but I want the seamlessness of submitting the form and getting the real file instantly in response.