Jump to content
Changes to the Jaspersoft community edition download ×

problem with xls output


Recommended Posts

By: ajay kumar - ajaykumar

problem with xls output

2003-02-19 04:30

hi!

i wrote a servlet which exports the report into xls format.From my servlet iam redirecting to the generated xls file using response.sendRedirect("a.xls").but iam getting junk characters on the browser..Browser is not opening the report in xls format...what may be the reason...

 

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

my browser is IE5.0

 

 

 

 

By: Rick Sperko - rsperko

RE: problem with xls output

2003-02-24 08:10

Mine worked to IE 6.0 with:

 

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

response.setContentLength(bytes.length);

ServletOutputStream ouputStream = response.getOutputStream();

ouputStream.write(bytes, 0, bytes.length);

ouputStream.flush();

ouputStream.close();

 

 

 

 

 

By: ajay kumar - ajaykumar

RE: problem with xls output

2003-03-10 04:18

hi

thanks for ur reply..can i have a code block which u used to generate xls report..still iam getting problems so iam asking for the reference..its very urgent and iam thankful if u send soon..

ajay

ajay@firstgensystems.com

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