将数据写入到CSV文件中--出现“科学计数法”问题,已解决

将数据写入到CSV文件中--出现“科学计数法”问题,已解决,与Excel有所不同,

在数据后面加上"/t"就可以咯。。。。

Ends.Write(retReader["Statis_dt"].ToString() + ","); Ends.Write(retReader["BranchCode"].ToString() + ","); Ends.Write(retReader["OrganCode"].ToString() + ","); Ends.Write(retReader["Iou_No"].ToString() + "/t,"); Ends.Write(retReader["Contract_No"].ToString() + "/t,"); Ends.Write(retReader["Repay_Term_No"].ToString() + ","); Ends.Write(retReader["Plan_Repay_dt"].ToString() + ","); Ends.Write(retReader["Act_Repay_dt"].ToString() + ","); Ends.Write(retReader["Repay_Capital"].ToString() + ","); Ends.Write(retReader["Loan_Bal"].ToString() + ","); Ends.Write(retReader["Next_Term_Repay_Capital"].ToString() + ","); Ends.Write(retReader["Repay_Status"].ToString() + ","); Ends.Write(retReader["InsertTime"].ToString() + ","); Ends.Write(Ends.NewLine);

你可能感兴趣的:(Asp.net)