Subversion Repositories SmartDukaan

Rev

Rev 20792 | Rev 20796 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20792 Rev 20793
Line 302... Line 302...
302
			row.createCell(i++).setCellValue(o.getCustomer_city());
302
			row.createCell(i++).setCellValue(o.getCustomer_city());
303
			rowNum++;
303
			rowNum++;
304
		}
304
		}
305
		ServletOutputStream os = response.getOutputStream();
305
		ServletOutputStream os = response.getOutputStream();
306
		workBook.write(bos);
306
		workBook.write(bos);
307
		bos.writeTo(os);
-
 
308
		os.flush();
-
 
309
		String filename=this.getMy() + "-order.xlsx";
-
 
310
		response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
307
		response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
-
 
308
		String filename=this.getMy() + "-order.xlsx";
311
		response.setHeader("Content-Disposition","attachment; filename=\"" + filename + "\"");
309
		response.setHeader("Content-Disposition","attachment; filename=\"" + filename + "\"");
-
 
310
		bos.writeTo(os);
-
 
311
		os.flush();
312
 
312
 
313
		
313
		
314
		return ActionSupport.NONE;
314
		return ActionSupport.NONE;
315
	}
315
	}
316
 
316