Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JExcel

Status
Not open for further replies.

jcamp

Programmer
Joined
Mar 31, 2004
Messages
31
Location
US
I have the following code which produces an excel spreadsheet to my browser. what i want to do is to use JExcel to manipulate the spreadsheet before presenting to the browser. can someone please tell me how to do this.
here is the current working code:

byte buf[] = output.getBytes();
ServletOutputStream sos = resp.getOutputStream();
//resp.setHeader("Content-disposition", "inline; filename=" + ra + dtStr + ".xls");
resp.setHeader("Content-disposition", "inline; filename="+ viewName + time + ".xls");
resp.setHeader("Pragma", "Public");
resp.setContentType("appilication/vnd.ms-excel");
resp.setContentLength(buf.length);
sos.write(buf);
sos.flush();
sos.close();
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top