Ejemplo n.º 1
0
        private void PrintButton_Click(object sender, EventArgs e)
        {
            LeftPanel.DrawToBitmap(b, LeftPanel.ClientRectangle);
            QuestionListView.DrawToBitmap(c, QuestionListView.ClientRectangle);

            if (printPreviewDialog1.ShowDialog() == DialogResult.OK)
            {
                printDocument1.Print();
            }
        }