Click here to Skip to main content
15,880,608 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
i want to load the docx file into the textbox i had MS Word 2003.i had tried with IFILTER.but getting error unable to load filter for docx.is there any other solution
thanks in advance
Posted
Comments
Maciej Los 31-May-12 13:45pm    
What if a docx has 500 pages?
What have you done so far?

You will have to find out the byte encoding of a docx document in order to parse it for either rich text, plain text, or an image.
 
Share this answer
 
Comments
srinvas 4-Jun-12 18:46pm    
how can i do that will you please send me the code
Hi Srinvas,
Use the RichTextBox's LoadFile method:
C#
RichTextBox1.LoadFile(@"C:\sample.docx",RichTextBoxStreamType.PlainText);
 
Share this answer
 
Comments
srinvas 4-Jun-12 18:47pm    
i think richtextbox control is in 3.0 framework but i am using only 2.0 framework (in production server)

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