如何使用数据库支持将excel文件导入/导出到Web应用程序 [英] How to import/export excel file in to web application with data base support

查看:91
本文介绍了如何使用数据库支持将excel文件导入/导出到Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Web应用程序中导出excel文件,并且上传的数据应该添加到数据库连接中,通过在Web应用程序中使用高级过滤器,它应该允许用户以excel格式导出报告,



请提供可下载的代码。



感谢您的支持



我尝试了什么:



我已经按照网站上的许多步骤进行了教程

I would Like to export an excel file in an web application and the data uploaded should be added in database connected, by using advanced filter in web application it should allow user to export report in an excel format,

Please provide me a downloadable code.

Thanks for your support

What I have tried:

I have followed many step by tutorials in websites

推荐答案

转到这篇CP文章:



SQLXAgent- SQL Express的工作 - 第3部分,共6部分 [ ^ ]



它包含导入CSV和Excel文件的代码。你的工作 - 提取你需要的部分,忽略其余部分。



顺便说一句,你不能只是将它添加到数据库而不需要额外的工作。与上面引用的文章系列相关的代码可以满足您的需要,但我知道作者,并且他不会遭受懒惰的傻瓜,因为他们不愿意将必要的工作付诸实践。考虑一下自己警告。
Go to this CP article:

SQLXAgent - Jobs for SQL Express - Part 3 of 6[^]

It contains code that imports both CSV and Excel files. Your job - extract the part you need and ignore the rest.

BTW, you can't just "add it to the database" without a lot of additional work. The code associated with article series cited above does what you need, but I know the author, and he doesn't suffer lazy fools that are unwilling to put the necessary work into something. Consider yourself warned.


这篇关于如何使用数据库支持将excel文件导入/导出到Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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