Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

c# richtextbox to pdf

SubZero answered on March 6, 2023 Popularity 2/10 Helpfulness 1/10

Contents


More Related Answers

  • c# richtextbox to string
  • c# richtextbox to string
  • c# richtextbox to string
  • C# Saving a RichtextBox to Sql Server
  • c# richtextbox to html
  • c# richtextbox to text file
  • c# write into richtextbox
  • c# richtextbox to text file
  • c# richtextbox to text file
  • c# richtextbox save to database
  • RichTextBox wpf FLOWdocument

  • c# richtextbox to pdf

    0

    use a third-party library such as iTextSharp or PDFsharp. Here's an example using iTextSharp: 

    Popularity 2/10 Helpfulness 1/10 Language csharp
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Mar 06 2023
    SubZero
    0 Answers  Avg Quality 2/10

    Closely Related Answers



    0

    Note that this code only adds the plain text contents of the RichTextBox control to the PDF file. If you want to include the formatted contents of the control (including font styles, colors, etc.), you'll need to use a different format, such as RTF or HTML. To convert the contents of the control in RTF format to PDF using iTextSharp, you can use the following code: 

    Popularity 1/10 Helpfulness 1/10 Language csharp
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Mar 06 2023
    SubZero
    0 Answers  Avg Quality 2/10

    0

    we're using the RtfParser class of iTextSharp to parse the RTF code of the RichTextBox control and add the resulting contents to the PDF document. To convert the contents of the control in HTML format to PDF using iTextSharp, you can use the following code: 

    Popularity 1/10 Helpfulness 1/10 Language csharp
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Mar 06 2023
    SubZero
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.