Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have already search a lot of codes in the Google on how import a documents(.docx) to the richtextbox, but the only available is from the richtextbox to the Microsoft office. I'm looking for someone that will help of my problem. And also when you create a documents to the richtextbox then you save it the file will be .docx and not a .rtf. Please help me :(
Posted
Updated 24-Jan-14 2:55am
v2
Comments
BillWoodruff 24-Jan-14 8:47am    
Is your question about how you can control MS Word from C# and save a document in RTF format ?
Member 10332274 24-Jan-14 8:56am    
Richtextbox rather
Member 10332274 24-Jan-14 9:12am    
No. Its not what i want is when I'm going to create a document in richtextbox I can save it by .docx format. And also I can import a documents(.docx) to richtextbox so that I can edit.

1 solution

all the 'x' documents 'docx', 'xlsx' etc. have an XML format in the back ground and while you can duplicate that there are classes that help.

Here is a article for creating and manipulating docx

C#: Create and Manipulate Word Documents Programmatically Using DocX[^]
 
Share this answer
 

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