Click here to Skip to main content
15,901,283 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,
I have a small text editor written in C#. The worksheet(text area for typing) in my application is simply a form with a richtext box. With this text editor I'm able to save and open rtf document types but now I wish to extend it's functionality to include the opening of documents in HTML, PDF and DOCX(Ms Word) format. I will even like it better if I could have a way of saving written documents in these formats too.

Please any help on how to do this is greatly welcomed.
VivianMC 11-Nov-15 5:57am    
See the following link, I believe it's exactly what you want:

In short it's a sample application for a word document editor. It also uses a RichTextBox control, but additionally it uses this C# library for word documents as well. Now how it works is that any document that you want to open is first converted into an RTF format, that library is able to read your word files (both DOC and DOCX) in C# and write them in RTF formats with C#. Also when you want to save the RichTextBox content into a file, the library will read that RTF content and create the desired (for example PDF) file in C#.

ITextSharp is what is most often used for reading PDF's in C#.
See here[^].
Share this answer
Hope this[^] and Creating PDF Tables using C# (.NET 2.0) and iTextSharp[^] an Article from CP might help you.
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