Ver Mensaje Individual
  #9 (permalink)  
Antiguo 28/11/2011, 12:41
abulon81
 
Fecha de Ingreso: mayo-2010
Mensajes: 99
Antigüedad: 14 años
Puntos: 5
Respuesta: Excel con Jakarta's POI

Wenas, me alegra que lo hayas solucionado, por ejemplo yo use en una app web , y no colocaba la ruta del archivo completa sino que lo usaba de la siguiente manera.

Código PHP:
    public void process(HttpServletRequest request,
        
HttpServletResponse responseReportBean rbeanthrows ServletExceptionIOException {
            try {
        
//response.setContentType("application/vnd.ms-excel");
        
HttpSession session request.getSession();
        
ServletContext context session.getServletContext();
        
String pathreal = (rbean.getModalidad().equals("0"))?context.getRealPath(EXCEL_FILE_MONTHLY):context.getRealPath(EXCEL_FILE_DAILY);
        
        
POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream(pathreal)); 
        
        
HSSFWorkbook hwb = new HSSFWorkbook(fs);
        
sheet =  hwb.getSheetAt(0);
        
setCell(CELL_TITLE,"Grafica"); 
lo demas es historia.
Cheers, hope this helps