我现在实现的是个读取上传文件的文件,类型为word文档,请我各位咋个读取里面的数据显示到aspx的页面上。还有咋个修改上传文件的名字。
解决方案 »
- 请问怎样在datagridview 末尾添加行?使用dataGridView.Rows.Add添加后在首行。
- 使用MagicLibrary 1.7.0的简单问题
- 求教C#中 ComboBox 控件显示问题,问题详见内文,请各位先进帮各忙。
- 请教高手调用类方法的问题
- 弱弱的问:UInt16是16位,在64的机器上会不会变成64位呢?
- 求救 visuacl c#中实现组合查询
- 我用仅有的900分中的100分发起一个发贴倡议。
- C# winform规格化DataGrid显示,自定义表头,高分求代码
- 如何得到同一工作组内所有机器名称及IP地址?
- help?
- 请问怎么从一个表更新另一个表~
- 超市商品查找与电子地图显示
string fileName = DateTime.Now.ToString("yyyyMMddhhmmss");
File1.PostedFile.SaveAs(“”);string Pa=page.Server.MapPath(@"../Template_temp/"+File+"");
page.Response.AppendHeader("Content-Disposition","attachment;filename="+File+"");
page.Response.ContentType ="application/ms-excel";
page.Response.WriteFile(Pa);
page.Response.End();
private string ReadWord(string path)
{
string str = string.Empty;
Document myWordDoc;
Microsoft.Office.Interop.Word.Application myWordApp = new Microsoft.Office.Interop.Word.ApplicationClass();object filepath = path;
object oMissing = Missing.Value;myWordDoc = myWordApp.Documents.Open(ref filepath, ref oMissing, ref oMissing, ref oMissing, ref oMissing,
ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing,
ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing);
str = myWordDoc.Content.Text;return str;
}