Hi, This is saritha
Iam getting the Error "This file could not be found. ("C:\WINDOWS\system32\...\sample2.docx")" while Retreiving the word document from database
My code is
ApplicationClass wordapp = new ApplicationClass();
jb.jobseekerId = Label4.Text;
jb.showjobseekerresume();
string path = "VasundharaJobs\\Jobseekers\\UPLOAD RESUME\\" + jb.resumepath;
//string path = jb.resumepath;
string filepath = path;
object file = filepath;
object nullobj = System.Reflection.Missing.Value;
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);
Document doc1 = wordapp.ActiveDocument;
string m_Content = doc1.Content.Text;
TxtFile.Text = m_Content;
doc.Close(ref nullobj, ref nullobj, ref nullobj);