Итак, ищу пример печати текст бокса, нашел пример....Но он на VB:
| Код | Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
e.Graphics.DrawString(TextBox1.Text, TextBox1.Font, Brushes.Black, New System.Drawing.RectangleF(e.MarginBounds.Top, e.MarginBounds.Left, e.PageBounds.Width, e.PageBounds.Height))
'* if you have many pages to print, then create a static counter to check after each page.
e.HasMorePages = False
|
Переведите плз на сишарп.... |