Skip to content

How to Print RichTextBox contains (text & images) in C#

rajika nanayakkara

Asked Jul 25, 2010, 8:50 AM EDT1 answer
Share
LinkedInX
im using virtual C# 2010 and i want to print both images & text that contain in richTextBox im using this code for set print page 

TypeScript
private void printDocument1_PrintPage(object sender, PrintPageEventArgs e)
        {
            e.Graphics.DrawString(richTextBox1.Text, richTextBox1.Font, new SolidBrush(richTextBox1.ForeColor), new Point(50, 50));
        }

But in this code only text is printing... How to set print page to print both image & text 

Thanx 

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.