Add 0 in front of the value in excel by java -
is there way add 0 in front of value ? in database record, have value 00037
.when written excel, 37
, instead of 00037
.
public static final string ref_no = "ref_no"; custom.setrptdailytxnrefno(rs.getstring(ref_no)); system.out.print(rs.getstring(ref_no))
please let me know if need more code.
the file in .xls
.
so found easier solution changing cellformat (which works fine). can write '00037
in excel have 00037
displayed. add apostrophe @ beginning
Comments
Post a Comment