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