Hi! Hello everybody! I have written servlets that open up an Excel screen with the data from Oracle. (And the user is able to edit, save, etc. in the Excel screen) To do this, I simply write code: res.setContentType("application/vnd.ms-excel;charset=Shift_JIS"); res.setHeader("Content-disposition", "attachment;filename=Report.xls"); PrintWriter p = res.getWriter(); ...... ...... The problem is when the Excel screen opened,the first '0' in the string(ex,0522,0733,etc.) has been deleted in the cells of Excel (in the cell of Excel,they are changed to 522,733 automatically and I don't want it to be changed). Can you tell me how to solve this problem,with the first '0' not to be deleted? The type of the cell of Excel is standard by default. Can I control it and change it to text in my code so that the first '0' in the string not to be deleted? Best regards! Thanks! ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to