使用dotnet将Word文档转换为excel文件 [英] converting word document to excel file using dotnet
问题描述
嗨
我的要求是从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屋!