最近写了读取下载后的Excel数据,遇到一点小问题,查阅了一些资料,进行了一些修改,分享给大家
,因为用的是自动化测试的工具写的,所以有些不是C#的代码,自己看吧: 在我的资源下载里面有结合拆分Excel表格(根据某一列拆分成多个Excel表格)的代码,需要的可以去下载
///////////////////////////////////////////////////////////////////////////////
//
// This file was automatically generated by RANOREX.
// Your custom recording code should go in this file.
// The designer will only add methods to this file, so your custom code won't be overwritten.
// http://www.ranorex.com
//
///////////////////////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularEx

这篇博客分享了作者在使用C#读取Excel文件时遇到的问题——'外部表不是预期的格式',并提供了对应的解决思路。作者通过Ranorex自动化测试工具生成的代码示例,展示了如何使用Microsoft.Office.Interop.Excel库来打开和操作Excel文件,以解决此类错误。
最低0.47元/天 解锁文章
5804

被折叠的 条评论
为什么被折叠?



