Click here to Skip to main content
15,897,891 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Dear Sir,
i will read the ms word file and i want to display in the text box .
Posted
Comments
OriginalGriff 3-Jun-13 2:32am    
And?
What have you tried?
Where are you stuck?
What environment are you in?
Use the "Improve question" widget to edit your question and provide better information.
Sergey Alexandrovich Kryukov 3-Jun-13 2:48am    
Why using MS Word format at all, you you loose formatting anyway?
—SA

1 solution

All you need to do is to read Range.Text[^] property for Document.Content, Paragraph, Table.Cells and so on...

Please, refer below links:
Documents.Open() method[^]
How to: Open Existing Documents[^]
Working with Text in Documents[^]
How to: Programmatically Insert Text into Word Documents[^]
How to: Programmatically Search for and Replace Text in Documents[^]
How to: Programmatically Reset Ranges in Word Documents[^]

I would suggest you to NOT "display" the content of MS Word document (text) into single textbox...
 
Share this answer
 
Comments
kalisiddayya 3-Jun-13 3:14am    
i will store the data in a string
Maciej Los 3-Jun-13 3:16am    
And...
kalisiddayya 3-Jun-13 6:41am    
i have to store the file in varchar(max) and i display the file text area.i have to edit and save the data in the sql server again

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900