Jump to content
Changes to the Jaspersoft community edition download ×

How to make firefox open excel at its window


Recommended Posts

By: Rafael - rafael123456

How to make firefox open excel at its window

2006-06-27 04:43

HI,

I have a application that makes reports, using Jasper. Using pdf, IE6 and FireFox open the document in their window, the same result. But when it comes to excel, things aren't easy... First, is hard to find out which is the write content type :

 

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

2.response.setContentType("application/xls");

 

At IE6, only works the vnd.ms-excel; it simply ignores the "xls" option. Ok, so I began to use the first option. But the firefox doesn't do it, it requests to user save the file.

I don't know how to make firefox open it at its window.

If anybody knows how to make firefox open a excel document at its windows, please, help.

 

 

By: Ionut Nedelcu - ionutned

RE: How to make firefox open excel at its wi

2006-06-27 05:33

The JasperReports library has an XlsServlet class you can use for displaying Excel files. That code does make Firefox open the file in its own window, if your Firefox is able to do that (this applies to any browser).

 

Ionut

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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...