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;
 }
예제 #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;
 }
예제 #6
0
 public PrinterService(ClassicReportDocument document, string printerName)
 {
     this.document = document;
     this.printerName = printerName;
 }
예제 #7
0
 public PrinterService(ClassicReportDocument document)
 {
     this.document = document;
 }
예제 #8
0
 public WinPrinterService(ClassicReportDocument document, string printerName)
     : this(document)
 {
     pd.PrinterSettings.PrinterName = printerName;
 }
예제 #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;
 }