示例#1
0
        /// <summary>
        /// Read pager size settings from a Windows Forms platform page settings.
        /// </summary>
        /// <param name="pageSettings">Page settings used in Windows Form platform.</param>
        public void ApplySystemPageSettings(System.Drawing.Printing.PageSettings wfps)
        {
            var wfpps = wfps.PaperSize;

            this.PaperName   = wfpps.PaperName;
            this.PaperWidth  = (RGFloat)Math.Round(wfpps.Width / 100f, 2);
            this.PaperHeight = (RGFloat)Math.Round(wfpps.Height / 100f, 2);

            this.Margins   = wfps.Margins;
            this.Landscape = wfps.Landscape;
        }
示例#2
0
 /// <summary>
 /// Construct print settings instance.
 /// </summary>
 public PrintSettings()
 {
     this.PageScaling = 1f;
     this.PageOrder   = PrintPageOrder.DownThenOver;
     //this.PaperSize = PaperSize.Letter;
     this.PaperName   = Print.PaperSize.Letter.ToString();
     this.PaperWidth  = 8.5f;
     this.PaperHeight = 11f;
     this.Landscape   = false;
     this.Margins     = new PageMargins(1f);
 }