在C#中找到空的Excel文件 [英] find empty excel file in c#

查看:118
本文介绍了在C#中找到空的Excel文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何查找具有数据或为空的Excel工作表..

How to find Excel sheet have data or empty..

推荐答案

每当我们创建任何空白的excel文件时,都会使用默认大小创建文件.例如24kb或类似的内容...跟踪该数字,然后将您的文件大小与该数字进行比较.我想这将帮助您了解文件是否为空
Whenever we create any blank excel file, File is created with default size. say 24kb or something like that... track that figure and compare your file size against that figure. I guess this will help you to know if file is empty or not


这篇关于在C#中找到空的Excel文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆