在C#中使用oledb连接string如何将科学表示法转换为文本string?

我有一组使用OLEDB连接string作为Excel文件下载的数据,如下所示:

4552

3.00E + 03

3.00E + 22

3F45

3.00E + 99

DD56677 37

Excel自动认为3E03,3E22和3E99是数字,并使它们看起来像上面..

如何把它作为一个string?

我的代码是

DataTable dataTable = new DataTable(); strExcelConn = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + strFilePath + ";" + "Extended Properties='Excel 8.0;HDR=" + header + ";IMEX=1;TypeGuessRows=0;ImportMixedTypes=Text'"; OleDbConnection connection = new OleDbConnection(strExcelConn); using (OleDbCommand command = new OleDbCommand()) using (OleDbDataAdapter adapter = new OleDbDataAdapter(command)) { command.Connection = connection; //Check if the Sheet Exists connection.Open(); DataTable dtExcelSchema; //Get the Schema of the WorkBook dtExcelSchema = connection.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, null); connection.Close(); connection.Open(); DataSet ds = new DataSet(); string SheetName = dtExcelSchema.Rows[0]["TABLE_NAME"].ToString(); command.CommandText = "SELECT * From [" + SheetName + "]"; adapter.SelectCommand = command; adapter.Fill(dataTable); connection.Close(); } 

请任何一个人帮我把这个柱子作为一个string

看看这个标题为“ 如何将一个包含指数的string转换为十进制并返回string”的 StackOverflow问题。

他们使用decimal.Parse(someMoneyVar, NumberStyles.Any)方法来进行转换。