C# Preview Print Dialog
问题 I have a datagrid of information and when the print button is clicked I want to show a print preview screen of what it will look like and then let the user print the document. Heres what I got so far: PrintDocument myDocument = new PrintDocument(); PrintPreviewDialog PrintPreviewDialog1 = new PrintPreviewDialog(); PrintPreviewDialog1.Document = myDocument; PrintPreviewDialog1.ShowDialog(); My question is how to get the data onto the preview screen.. thanks! 回答1: You need to add the PrintPage