How can i send Printdocument to richtextbox so i can write something above text and send it as email.
here is code:
private void button3_Click(object sender, EventArgs e)
{
try
{
PrintDocument pd = new PrintDocument();
pd.PrintPage += new PrintPageEventHandler(this.PrintPageEventHandler);
if (this.storedPageSettings != null)
pd.DefaultPageSettings = this.storedPageSettings;
PrintPreviewDialog dlg = new PrintPreviewDialog();
dlg.Document = pd;
dlg.Width=800;
dlg.Height = 800;
dlg.ShowDialog();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
any help is appreciated