aspose file tools
The moose likes Servlets and the fly likes Excel File Download Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

Excel File Download

vinoth khanna
Greenhorn

Joined: Jun 26, 2003
Posts: 13
HI all,

I am generating excel reports in weblogic server 7.0 using servlets and I use JCOM for this.
The code is like this ...

code :
import http.servlet.*;
..
public class servlet name extends ..
//DB connection
Connection con = null;


//JCOM or Jintegra code
Cleaner.trackObjectsInCurrentThread();
excel.Application app = new excel.Application();
excel.Workbooks workbooks = app.getWorkbooks();

//download part
response.setHeader("Content-Disposition","attachment; filename=\""+ new String(fileJa.getBytes("Shift_Jis"),"ISO8859_1") + ".xls\"");
response.setHeader("Content-Description","super ");
response.setHeader("Pragma","Public");

}


Here when I click generate reports i can download excel file by answering an dialog box whether to "save" or "open".

My prob is when i do not answer an dialog box in one machine and keep the box as it is, I am not able to further proceed to generate report in other machines.

How could I rectify this problem... Some times i could get reports generated when not answered.

Thanx

Vinod
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17234
    
    1

This is a duplicate post, I am going to close this one, since the other already has a reply.

Please refrain from duplicate posting.

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Excel File Download
 
Similar Threads
file download dialog box - help me out
Adobe Acrobat gives error to open programmatically generated pdf attachment.
Error in excel report generation from jsp
file download dialog box
Excel File Download