public WinPrinterService(ClassicReportDocument document)
 {
     this.document = document;
     pd            = new PrintDocument();
     pd.PrintPage += OnPrintPage;
     pd.DefaultPageSettings.Margins.Top    = 25;
     pd.DefaultPageSettings.Margins.Bottom = 25;
     pd.DefaultPageSettings.Margins.Left   = 10;
     pd.DefaultPageSettings.Margins.Right  = 10;
     System.Drawing.Printing.PaperSize papersize = new System.Drawing.Printing.PaperSize("Custom", document.PaperWidth, document.PaperHeight);
     pd.DefaultPageSettings.PaperSize = papersize;
     pd.DocumentName = document.DocumentName;
 }
Exemplo n.º 2
0
 public XpsService(ClassicReportDocument report)
 {
     _report = report;
 }
 public WinPrinterService(ClassicReportDocument document, string printerName)
     : this(document)
 {
     pd.PrinterSettings.PrinterName = printerName;
 }
 public PrinterService(ClassicReportDocument document, string printerName)
 {
     this.document    = document;
     this.printerName = printerName;
 }
 public PrinterService(ClassicReportDocument document)
 {
     this.document = document;
 }
Exemplo n.º 6
0
 public PrinterService(ClassicReportDocument document, string printerName)
 {
     this.document = document;
     this.printerName = printerName;
 }
Exemplo n.º 7
0
 public PrinterService(ClassicReportDocument document)
 {
     this.document = document;
 }
Exemplo n.º 8
0
 public WinPrinterService(ClassicReportDocument document, string printerName)
     : this(document)
 {
     pd.PrinterSettings.PrinterName = printerName;
 }
Exemplo n.º 9
0
 public WinPrinterService(ClassicReportDocument document)
 {
     this.document = document;
     pd = new PrintDocument();
     pd.PrintPage += OnPrintPage;
     pd.DefaultPageSettings.Margins.Top = 25;
     pd.DefaultPageSettings.Margins.Bottom = 25;
     pd.DefaultPageSettings.Margins.Left = 10;
     pd.DefaultPageSettings.Margins.Right = 10;
     System.Drawing.Printing.PaperSize papersize = new System.Drawing.Printing.PaperSize("Custom", document.PaperWidth, document.PaperHeight);
     pd.DefaultPageSettings.PaperSize = papersize;
     pd.DocumentName = document.DocumentName;
 }