private void printButton_Click(object sender, EventArgs e) { printButton.Visible = false; printDocument1.DefaultPageSettings.Landscape = true; CaptureScreen(); printDialog1.AllowSelection = true; printDialog1.AllowSomePages = true; if (printDialog1.ShowDialog() == DialogResult.OK) { if (printPreviewDialog1.ShowDialog() == DialogResult.OK) { printPreviewDialog1.Close(); printButton.Visible = true; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)