public PageSettings ToPageSettings(PrinterSettings currentPrinter) { PageSettings customPageSettings = this.CustomPageSettings; ReportPageSettings.UpdatePageSettingsForPrinter(customPageSettings, currentPrinter); customPageSettings.Margins = this.Margins; return(customPageSettings); }
public ReportPageSettings(double pageHeight, double pageWidth, double leftMargin, double rightMargin, double topMargin, double bottomMargin) { this.m_pageWidth = ReportPageSettings.ConvertMmTo100thInch(pageWidth); this.m_pageHeight = ReportPageSettings.ConvertMmTo100thInch(pageHeight); this.m_margins = new Margins(ReportPageSettings.ConvertMmTo100thInch(leftMargin), ReportPageSettings.ConvertMmTo100thInch(rightMargin), ReportPageSettings.ConvertMmTo100thInch(topMargin), ReportPageSettings.ConvertMmTo100thInch(bottomMargin)); }