dcsimg
Need help in exporting data to ms excel once every week using jsp
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Grayson_Chu
Posted On:   Thursday, May 27, 2004 07:23 PM

Currently I can only export to excel only upon loading the page, the code : <%@ page language="java" import="java.io.*" %> <% String result = new String(""); result="ID Name Date Amount "+ "1 NameA 4.1.1999 200.12 "+ "2 NameB 03.10.2000 2000 "+ "3 NameC 22.12.1989 400.60 "; response.setContentType("application/vnd.ms-excel"); response.setHeader("Content-Disposition","inline;filename=" + "Test"+".xls"); response.setHeader("Cache-Control","no-cache"); PrintWriter pout = response.getWri   More>>


Currently I can only export to excel only upon loading the page, the code :


<%@ page language="java" import="java.io.*" %>
<%
String result = new String("");
result="ID Name Date Amount
"+
"1 NameA 4.1.1999 200.12
"+
"2 NameB 03.10.2000 2000
"+
"3 NameC 22.12.1989 400.60
";
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-Disposition","inline;filename=" + "Test"+".xls");
response.setHeader("Cache-Control","no-cache");
PrintWriter pout = response.getWriter();
pout.println("");
pout.print(result);
pout.close();
%>


I need help in modifying the code so that it only does it once every week

   <<Less

Re: Need help in exporting data to ms excel once every week using jsp

Posted By:   Christopher_Koenigsberg  
Posted On:   Friday, May 28, 2004 06:51 AM

A fine example of a very detailed precise question :-)
About | Sitemap | Contact