|
PrintPreviewDialog
What is wrong with this code
PrintDocument PD=new PrintDocument(); PD.DocumentName= @"C:\MTS\CodeGuru1.Doc";
PrintPreviewDialog pp=new PrintPreviewDialog();
pp.Document=PD;
pp.Refresh();
pp.ShowDialog();
this C:\MTS\CodeGuru1.Doc file not opening in the PrintPreviewDialog
I want show the contents of the file in PrintPreviewDialog.
|