I need to read more than 1 file rtf files and assigned to Richtextbox which in turn would be helpful in converting the same to pdf?
thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The RichTextBox class contains a function LoadFile(string path). Pass the LoadPath function your the location of the file you want to load and it will display it.
If you modify the text, you can save it back out as an RTF file, by calling the RichTextBoxes SaveFile function. See the reference below for further information.
If you want to save a document to PDF you need to either print the file to a PDF after installing a PDF printing driver or you will need to use a third party API for creating documents that you can export to PDF.
Ref: http://msdn.microsoft.com/en-us/library/system.windows.forms.richtextbox.aspx