** EXCEL表格导入限制.. [英] ** EXCEL Sheet Import Restriction..

查看:147
本文介绍了** EXCEL表格导入限制..的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,



在我的项目中,我使用excel数据导入概念。



因为我导入了一个名为Sheet1的excel ..



如果我再次导入相同的excel,则不应导入。



它应该提醒已经导入的Excel文件。




是这可能吗?





问候,

Venki

Hi friends,

In my project i'm using excel data import concept.

in that i've import one excel named "Sheet1"..

if i imported the same excel again it should not be imported.
and
it should alert like "The Excel File Already Imported".


Is this possible??


Regards,
Venki

推荐答案

读取导入文件,生成文件的散列(SHA-256等)存储它。



如果下一个文件有相同的哈希,那你很可能已经导入了这个文件。



因为你还没有给别的东西继续下去,这是我能想到的最好的选择目前。
Read the import file, generate a hash of the file (SHA-256 etc.) store it.

If the next file has the same hash, then chances are you have already imported the file already.

As you have not really given much else to go on, this is the best option I can think of at the moment.




是的可能,如果您需要将导入的excel文件与工作表名称一起保存在数据库或任何文本文件中,以便每次导出你需要与之前的比较。
Hi,
Yes possible, in case you need to keep imported excel file along with sheet name in Database or any text file so every export you need compare with previous one.


这篇关于** EXCEL表格导入限制..的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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