B/S c#项目 读取word文档内容怎么做
Microsoft.Office.Interop.Word.ApplicationClass wordApp = new ApplicationClass();
object file = this.FileUpload1.PostedFile.FileName.ToString() as object;
object nullobj = System.Reflection.Missing.Value;
Microsoft.Office.Interop.Word.Document doc = wordApp.Documents.Open(
ref file, ref nullobj, ref nullobj,
ref nullobj, ref nullobj, ref nullobj,
ref nullobj, ref nullobj, ref nullobj,
ref nullobj, ref nullobj, ref nullobj,ref nullobj,ref nullobj,ref nullobj,ref nullobj);
string yyy=doc.Content.ToString();
读取WORD文档内容然后赋给字符窜 请问怎么写?以上的代码是网上找的,读不出来数据。
------解决方案--------------------
读取WORD