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; }
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; }