需要使用C#获取Excel文件中附加的文件名 [英] Need to get the file name attached in the Excel file using C#

查看:109
本文介绍了需要使用C#获取Excel文件中附加的文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个Excel文件,其中附加了另一个文件.在excel文件中,附件是使用
完成的 插入->对象->创建文件->(仅显示图标)"方法

在Asp页面中,用户将使用文件上传控件将此文件上传到服务器.
当他上载时,我正在为此上载的文件创建OLEDB连接并读取数据,但我需要的是与此数据一起获取附件的文件.

使用C#代码.

与此问题有关,我一直在怀疑->我们可以在ASP .NET应用程序中使用Thread来提高性能吗?"


请帮助我解决问题.

There is a Excel file in that another file is attached. in the excel file the attachment is done using the
"insert->object-> create file->(display icon only)" method

In Asp page user will upload this file to server using file upload controll
when he uploads i''m creating the OLEDB connection to this uploaded file and reading the data but what i need is along with this data need to get the attached file.

using the C# code.

"Along with this question, i am having doubt-> can we use Thread in ASP .NET application to improve the performance?"


Please help me to solve the problem.

推荐答案

它们存储在工作表中,因此您应该仔细阅读它们.检查链接以获取更多信息:
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.excel._worksheet.oleobjects.aspx [
They are stored in a Worksheet so you should look through them. Check the link for more info:
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.excel._worksheet.oleobjects.aspx[^]

Good luck!


这篇关于需要使用C#获取Excel文件中附加的文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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