I need to retrieve word document into browser for print. I used the following code, yet im unable to add com reference for the Microsoft Word 9.0 Object Library. I use Visual studio 3.5. i found Microsoft Word 11.0 Object Library which is not supportng word application class.what shud i be doing.
Word.ApplicationClass wordApp = new ApplicationClass();
object file = path;
object nullobj = System.Reflection.Missing.Value;
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);
doc.ActiveWindow.Selection.WholeStory();
doc.ActiveWindow.Selection.Copy();
IDataObject data = Clipboard.GetDataObject();
txtFileContent.Text = data.GetData(DataFormats.Text).ToString();
doc.Close();