使用dotnet将Word文档转换为excel文件 [英] converting word document to excel file using dotnet

查看:129
本文介绍了使用dotnet将Word文档转换为excel文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我的要求是从word读取数据并将其写入excel文件.

假设文字信息就是这样
sno:1
sname:abc
scity:xyz
spno:123456789
在excel中,它将像这样导出
-------------------------------------------
sno |名称|城市| spno
-------------------------------------------
1 | abc | xyz | 123456789
-------------------------------------------

是否可以使用dotnet,Macro或SSIS?

预先感谢.

Hi
My requirement is to read data from word and write it into excel file.

suppose in word information is like this
sno:1
sname:abc
scity:xyz
spno:123456789
in excel it will export like this
-------------------------------------------
sno | sname | scity | spno
-------------------------------------------
1 |abc |xyz |123456789
-------------------------------------------

Is it possible using dotnet, or Macro, or SSIS ?

Thanks in advance.

推荐答案

首先,U可以在数据集或数据表中获取ur文本数据.
然后您可以将您的数据集传输到Excel.
查看此链接

从定界文本文件填充数据集 [ http://madskristensen.net/post/Export-a-DataTable-to- Excel-in-ASPNET.aspx [ ^ ]
For that first of all U can take ur text data in dataset or datatable
and then u can transfer ur dataset to Excel.
see this links

Fill a DataSet from delimited text files[^]

http://madskristensen.net/post/Export-a-DataTable-to-Excel-in-ASPNET.aspx[^]


这篇关于使用dotnet将Word文档转换为excel文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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