PrintDocument tmpDoc = new PrintDocument(); tmpDoc.PrintPage += new PrintPageEventHandler(toPrinter); PrintPreviewDialog tmpDiag = new PrintPreviewDialog(); tmpDiag.Document = tmpDoc; tmpDiag.WindowState = FormWindowState.Maximized; tmpDiag.PrintPreviewControl.Zoom = 1; tmpDoc.Print();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)