I retrieve byte from database table an convert to word.applcation class and get value from word.application class to textbox control
ut's working in local.i publish this application in main .it's not working .
ERROR DISPLAYED:COULD NOT OPEN MACRO STORAGE:
EXAMPLE PROGRAM:
string strPath = tempFilePath + "\\" + tempFile;
Word.ApplicationClass Readword = new Microsoft.Office.Interop.Word.ApplicationClass();
object file = strPath;
object nullobj = System.Reflection.Missing.Value;
object readOnly = false;
//Word.Document doc = Readword.Documents.Open(
Word.Document doc = Readword.Documents.Open(ref file,
ref nullobj, ref readOnly, 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);
//
doc.Activate();
Word.Document doc1 = Readword.ActiveDocument;
string m_Content = doc1.Content.Text;
m_TxtSpecification.Text = m_Content;
//
//m_TxtSpecification.Text = data.GetData(windows.DataFormats.Text).ToString();
//doc.ActiveWindow.Selection.Copy();
//
//m_TxtSpecification.ReadOnly = true;
doc.Close(ref nullobj, ref nullobj, ref nullobj);
Readword.Quit(ref nullobj, ref nullobj, ref nullobj);