File Download Open problem


#1

We have a web app that creates an Excel Worksheet using Aspose and then allows the user to download it. With one of our clients after they click on the “Open” button, a “Save as” dialog is immediatly displayed to them. So even though they have tried to just open the file they have to save it to their computer. Once it is saved to the computer they can then open it, but this is an extra step that they would rather not have to take. When we do the same thing on our computers we are not required to save the file and it opens up as expected. We have also set up a test Excel file for them to try to open directly without going through the app. This works correctly, so it has something to do with opening the Aspose generated through the app.

Any help on this would be greatly appreciated.
Jason


#2

Hi Jason,

“Save as” dialog is not controlled by Aspose.Excel and doesn’t matter with the generated file. It’s controlled by IE and windows settings.

“We have also set up a test Excel file for them to try to open directly without going through the app.” How do you let your users to open it? You can replace the test Excel file with Aspose.Excel generated file.

IE display this “Save as” dialog is for security issue. Otherwise, a virus file with .xls suffix will be downloaded and run automatically. It will crashed the system.

I think your machine has not been installed the latest patch of Windows. So the dialog box doesn’t show.

If you do want to remove the dialog box, you can try to save the file in your server and provide a link for your users.