Esempio n. 1
0
        private void Print()
        {
            RefreshReport();
            string    printerName = _reportService.GetPrinterNameForReport();
            PaperSize NewSize     = new PaperSize();

            NewSize.RawKind = (int)PaperKind.Custom;
            NewSize.Width   = 950;
            NewSize.Height  = 1620;
            RDLCPrinter rdlcPrinter = new RDLCPrinter(reportViewer.LocalReport);

            rdlcPrinter.Print(printerName, 0, Duplex.Horizontal, NewSize, true);
            _reportService.SetReportEvidence(rdlcPrinter.GetPDFArray(), labelId);
        }
Esempio n. 2
0
 /// <summary>
 /// Print report button
 /// </summary>
 private void cmdPrint_Click(object sender, RoutedEventArgs e)
 {
     _report.Reporttype = ReportType.Printer;
     _report.Print();
 }