fuadhamidov
Programmer
hi
i need to export float value to excel. i use code bellow. i have no problem to export any data type that i need except float. the problem i meet is that when i want to write for example "2.13" it returns to "Feb.13" in excel. you may offer to write "2,13" but i think it is not exact solution. in any excel that decimal separator setted as ',' it does not work.
request.setCharacterEncoding( "windows-1254" );
response.setContentType("application/vnd.ms-excel"
response.setHeader("Content-Disposition","attachment; filename=" + "excel.xls" );
PrintWriter pw = response.getWriter();
pw.println("1,13"
pw.flush();
pw.close();
i need to export float value to excel. i use code bellow. i have no problem to export any data type that i need except float. the problem i meet is that when i want to write for example "2.13" it returns to "Feb.13" in excel. you may offer to write "2,13" but i think it is not exact solution. in any excel that decimal separator setted as ',' it does not work.
request.setCharacterEncoding( "windows-1254" );
response.setContentType("application/vnd.ms-excel"
response.setHeader("Content-Disposition","attachment; filename=" + "excel.xls" );
PrintWriter pw = response.getWriter();
pw.println("1,13"
pw.flush();
pw.close();