[代码] [Java]代码 import java.io.IOException;


import org.apache.poi.hssf.usermodel.HSSFWorkbook;




public class PoiRender extends Render {

	private HSSFWorkbook wb;
	private String name;
	public  Exc http://www.starkp.com/linked/20130228.do; elRender(HSSFWorkbook wb, String name){
		this.wb = wb;
		this.name = name;
	
		
	}

	public void render() {
		response.addHeader("Content-disposition", "attachment; filename="   name);
		response.setContentType("application/x-msdownload");
		
		try {
			wb.write(response.getOutputStream());
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
} http://wj.aaafaipiao.com/linked/20130228.do; 

相关文章:

  • 2021-06-28
  • 2022-01-17
  • 2022-12-23
  • 2021-08-07
  • 2021-08-19
  • 2021-06-15
  • 2022-12-23
  • 2021-05-12
猜你喜欢
  • 2022-12-23
  • 2021-10-25
  • 2021-08-02
  • 2022-12-23
  • 2021-12-13
  • 2021-04-08
  • 2022-12-23
相关资源
相似解决方案