public static string ReadExcelOnlineSub(string xmlInput) { string resultFromCore = ReadExcelOnline(xmlInput); if (!string.IsNullOrEmpty(resultFromCore)) { CFormatForExcelUtilEx formatForExcelUtilEx = new CFormatForExcelUtilEx(resultFromCore); if (formatForExcelUtilEx.LPartData.Count >= 3) resultFromCore = String.Format("{{\"isSuccess\":true,\"data\":\"{0}\"}}", formatForExcelUtilEx.ToCSVOutput()); else resultFromCore = string.Format("{{\"isSuccess\":false,\"error\":\"{0}\"}}", formatForExcelUtilEx.Message); } return resultFromCore; }
public static string ReadExcelOnlineSub(string xmlInput) { string resultFromCore = ReadExcelOnline(xmlInput); if (!string.IsNullOrEmpty(resultFromCore)) { CFormatForExcelUtilEx formatForExcelUtilEx = new CFormatForExcelUtilEx(resultFromCore); if (formatForExcelUtilEx.LPartData.Count >= 3) { resultFromCore = String.Format("{{\"isSuccess\":true,\"data\":\"{0}\"}}", formatForExcelUtilEx.ToCSVOutput()); } else { resultFromCore = string.Format("{{\"isSuccess\":false,\"error\":\"{0}\"}}", formatForExcelUtilEx.Message); } } return(resultFromCore); }