i have a problem in reading and displaying doc file using asp.net.i need to display that doc file content in my webpage.
here is my code:
Object filename = (Object)wordFile.FullName;
Document doc = word.Documents.Open(ref filename, ref oMissing,
ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing,
ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing,
ref oMissing, ref oMissing, ref oMissing, ref oMissing);
try
{
doc.Activate();
doc.ActiveWindow.Selection.WholeStory();
doc.ActiveWindow.Selection.Copy();
object emptyData = string.Empty;
IDataObject data = System.Windows.Forms.Clipboard.GetDataObject();
String filetext = data.GetData(System.Windows.Forms.DataFormats.Text).ToString();
System.Windows.Forms.Clipboard.SetDataObject(string.Empty);
RichTextBox richTextBox1 = new RichTextBox();
richTextBox1.Text = filetext;
my doc file contains text as well as image.i dont know how to read and display this doc file in my webpage.please help me.