3

Copy Word Document into TextBox in C# (Web Application)

view full story
linux-howto

http://www.daniweb.com – I want code to copy word text content into texbox using c# code in web application right now i have code for windows application. using Microsoft.Office.Interop.Word; private void readFileContent(string path)     {         Microsoft.Office.Interop.Word.ApplicationClass wordApp = new ApplicationClass();         object file = path;         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);         doc.ActiveWindow.Selection.WholeStory();         doc.ActiveWindow.Selection.Copy();         IDataObject data = Clipboard.GetDataObject();       textbox1.Text = data.GetData(DataFormats.Text).ToString();         doc.Close(ref nullobj, ref nullobj, ref nullobj);         wordApp.Quit(ref nullobj, ref nullobj, ref nullobj);     } This code is working in windows application....Clipbord is not there in web application.... so how to do in web application (General)