Exemplo n.º 1
0
 private void PrintReportPDFBtn_Click(object sender, RoutedEventArgs e)
 {
     using (PrintDemo demo = new PrintDemo())
     {
         LocalReport report = this.GetLocalReport();
         demo.Run(report, "Microsoft Print to PDF");
     }
 }
Exemplo n.º 2
0
 private void PrintReportSilentlyBtn_Click(object sender, RoutedEventArgs e)
 {
     using (PrintDemo demo = new PrintDemo())
     {
         LocalReport report = this.GetLocalReport();
         demo.Run(report, demo.GetDefaultPrinterNameV1());
     }
 }