Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am using RichTextBox problem is I am writing in TextBox and save file in PDF format when i open PDF file. TextBox show in PDF format but data not show in PDF format.

What I have tried:

RTFPrintCtrl1.SaveFile("C:\Users\Desktop\Print.pdf", RichTextBoxStreamType.PlainText)
Posted
Updated 21-Mar-19 9:04am
Comments
Mehdi Gholam 21-Mar-19 13:27pm    
"PlainText" is not PDF
Computechsoft 21-Mar-19 13:44pm    
These are also RichTextBoxStreamType property but Text Box Data not show in PDF

RichTextBoxStreamType.PlainText
RichTextBoxStreamType.RichNoOleObjs
RichTextBoxStreamType.RichText
RichTextBoxStreamType.TextTextOleOjjs
RichTextBoxStreamType.UniCodePlainText

1 solution

Rich text does not have a standard option to save in PDF format: you will need to find an RTF to PDF converter that you can include in your app.
Google will help: RTF to PDF converter VB.NET - Google Search[^] - but it's up to you to find one that fits exactly what you are trying to do.
 
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