Hello Friends,
I want to display my word file contents in .aspx page. After displaying them i want to select some part of the word file and do some formatting on that selected text. I have tried the following code. It gives me all the text of the word file on the page but without formatting.
oWordAppl = New Word.Application
oDoc = oWordAppl.Documents.Open("c:\test.doc", missing, oReadOnly, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing)
oDoc.ActiveWindow.Selection.WholeStory()
oDoc.ActiveWindow.Selection.Copy()
FreeTextBox1.Text = oDoc.Content.Text
Label1.Text = oDoc.Content.Text
& ...
Go to the complete details ...