Ejemplo n.º 1
0
 private void pageSetupToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (var psd = new PageSetupDialog())
     {
         psd.PageSettings = pageSettings;
         if (psd.ShowDialog() == DialogResult.Cancel)
         {
             return;
         }
         pageSettings = new ScintillaNet.PageSettings
         {
             PrinterSettings   = psd.PageSettings.PrinterSettings,
             PrinterResolution = psd.PageSettings.PrinterResolution,
             PaperSource       = psd.PageSettings.PaperSource,
             PaperSize         = psd.PageSettings.PaperSize,
             Margins           = psd.PageSettings.Margins,
             Landscape         = psd.PageSettings.Landscape,
             Color             = psd.PageSettings.Color
         };
     }
 }
Ejemplo n.º 2
0
		/// <summary>
		/// Default Constructor
		/// </summary>
		/// <param name="oScintillaControl">Scintilla control being printed</param>
		public PrintDocument(Scintilla oScintillaControl)
		{
			m_oScintillaControl = oScintillaControl;
			DefaultPageSettings = new ScintillaNet.PageSettings();
		}
Ejemplo n.º 3
0
 /// <summary>
 /// Default Constructor
 /// </summary>
 /// <param name="oScintillaControl">Scintilla control being printed</param>
 public PrintDocument(Scintilla oScintillaControl)
 {
     m_oScintillaControl = oScintillaControl;
     DefaultPageSettings = new ScintillaNet.PageSettings();
 }