Jump to content
Changes to the Jaspersoft community edition download ×

open excel file


heffingtond

Recommended Posts

Hello-

I am attempting to redirect to an xls file that gets created by my web application. Instead of opening the file with Excel, the file is being displayed as raw text within a browser window. If, on the other hand, I open the same xls file by double clicking it in Windows Explorer, the file opens correctly in Excel.

 

I have included the following code prior to the creation and redirect to the file:

resp.setContentType("application/vnd.ms-excel");

 

The same redirect process is working for the PDF and html versions of the same report. Is there an additional step necessary to get the client to open an Excel file with Excel when a redirect id done on the server?

 

Thanks,

David.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...