I know MS Excel has to be installed on the server and I already have an agent that creates the excel file.
I want the user to select the view he wants to export and propose him to download the file created to his pc.
I create the file on the server, put it in a doc and redirect the user to the url to download the file using the $file/…?OpenElement URL command…I can already do this…
The problem is that there will be lots of excel files created on the server.
So I was wondering whether I could create an excel file and put it in a doc without saving it to the server’s disk…or whether there is a way to delete the file once it is downloaded.
Or maybe if there is a way to make a scheduled agent delete excel files that are not used anymore.
If you want to dynamically create an Excel spreadsheet ‘properly’ you would have to have MS Office (or at least MS Excel) installed on the server.
There are some ‘kits’ out there that can help you create files with all the correct header-info and stuff so that a file in that manner is really considered to be a proper Excel-file. I have never really tried any of those fetures myself, so can’t really say how well they perform.
If you don’t have the need to create Excel files dynamically on the server, you could always have an administrator person create the file on a PC and then just attach the file to a document.