在Web应用程序中检查第一个ROW OF EXCEL是否包含列名 [英] check whether the first ROW OF EXCEL contains column names or not IN WEB APPLICATION

查看:74
本文介绍了在Web应用程序中检查第一个ROW OF EXCEL是否包含列名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

我正在使用VS 2005,asp.net,c#
我有一个具有3列的Excel文件.
第一行应为列名.
如何检查第一个ROW OF EXCEL在Web应用程序中是否包含列名?

在此先感谢
George

Hi friends,

I am using VS 2005,asp.net,c#
I have an excel file that has 3 columns.
first row should be the column names.
How to check whether the first ROW OF EXCEL contains column names or not IN WEB APPLICATION?

Thanks in advance
George

推荐答案

如果excel文档起源于客户端,则需要将文件上传到服务器,然后手动处理该文件以进行检查.

CP的这篇文章很老,但是可能会提供一些有关它如何工作的见解:使用C#打开和导航Excel [ ^ ]

另一个很好的教程: http://csharp.net-informations.com/excel/csharp-open- excel.htm [ ^ ]

还有一个: http://social.msdn. microsoft.com/Forums/zh-CN/vsto/thread/b6e8a28c-6760-4e86-a1aa-e2ce9ec36380 [
If the excel document originates on the client, then you will need to upload the file to the server and then process the file manually to check.

This CP article is quite old, but may provide some insight as to how this works: Opening and Navigating Excel with C#[^]

Another good tutorial: http://csharp.net-informations.com/excel/csharp-open-excel.htm[^]

And another one: http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/b6e8a28c-6760-4e86-a1aa-e2ce9ec36380[^]


这篇关于在Web应用程序中检查第一个ROW OF EXCEL是否包含列名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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