Reputation: 745
I have URL that gets called from my java app that returns the save/open dialog for an Excel file.
At the moment, it opens in a new tab but I want to return the dialog box in the same window. I do not know the file name as it is dynamic and changes based on the parameters passed in. I also do not want to save it somewhere as I want the user to have the choice of opening or saving.
Is there anyway of doing this in Java? I've only seen examples where the file name is known.
EDIT The URL is hitting a CGI Script
Upvotes: 1
Views: 1502
Reputation: 33871
Create a File
object in your app from the url, store it in a temporary location then ask Excel to open it for you.
Upvotes: 2