1
Answer

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

Photo of rajika nanayakkara

rajika nanayakkara

15y
9.3k
1
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 

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 

Answers (1)