msWord.ApplicationClass oWord = new msWord.ApplicationClass(); object nullobj = System.Reflection.Missing.Value; string location = Server.MapPath("~") + "\\Resumes\\"; object file = location.Trim() + resume.Trim(); //"D:/Folder1/1.doc"; //location; // @"D:\DOT NET\sanvelsinfo\Resumes\SVCM-00002.doc"; Word.Document oWordDoc = (Word.Document)(oWord.Documents.Add(ref file, ref nullobj, ref nullobj, ref nullobj)); str = oWordDoc.Content.Text; if (str.ToLower().Contains(keyword) || str.ToUpper().Contains(keyword)) { filename = resume.Trim(); filename = filename.Replace(".doc", ""); filename = filename + ","; lbl_resume.Text = str.ToString(); uid = lbl_uid.Text; Total_file += filename.ToString(); } oWord.Quit(ref nullobj, ref nullobj, ref nullobj);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)