Beispiel #1
0
    protected override void OnQueryPageSettings(QueryPageSettingsEventArgs e)
    {
        e.PageSettings = _documents[_docIndex].DefaultPageSettings;
        CallMethod(_documents[_docIndex], "OnQueryPageSettings", e);
        base.OnQueryPageSettings(e);

          CallMethod(_documents[_docIndex], "OnEndPrint", _args);
          if (_args.Cancel)
          return;
          _docIndex++;
    }
Beispiel #2
0
	static private void QueryPageSettings (object sender, QueryPageSettingsEventArgs e)
	{
		
	}
Beispiel #3
0
 private void printDocument1_QueryPageSettings(object sender, QueryPageSettingsEventArgs e)
 {
     izvestaj.QueryPageSettings(sender, e);
 }
Beispiel #4
0
        /// <summary>
        /// Extends BeginInvoke so that when a state object is not needed, null does not need to be passed.
        /// <example>
        /// querypagesettingseventhandler.BeginInvoke(sender, e, callback);
        /// </example>
        /// </summary>
        public static IAsyncResult BeginInvoke(this QueryPageSettingsEventHandler querypagesettingseventhandler, Object sender, QueryPageSettingsEventArgs e, AsyncCallback callback)
        {
            if (querypagesettingseventhandler == null)
            {
                throw new ArgumentNullException("querypagesettingseventhandler");
            }

            return(querypagesettingseventhandler.BeginInvoke(sender, e, callback, null));
        }
Beispiel #5
0
 private void printDoc_QueryPageSettings(object sender, QueryPageSettingsEventArgs e)
 {
     e.PageSettings.Landscape = true;
 }
 private void Doc_QueryPageSettings(object sender, QueryPageSettingsEventArgs e)
 {
     //e.PageSettings.PaperSize = currentBilhete.PaperSize;
     e.PageSettings.PaperSize = new PaperSize("210 x 297 mm", 800, 800);
 }
Beispiel #7
0
 protected override void OnQueryPageSettings(QueryPageSettingsEventArgs e)
 {
     e.PageSettings = _documents[_docIndex].DefaultPageSettings;
     CallMethod(_documents[_docIndex], "OnQueryPageSettings", e);
     base.OnQueryPageSettings(e);
 }
 protected override void OnQueryPageSettings(QueryPageSettingsEventArgs e)
 {
     base.OnQueryPageSettings(e);
 }
Beispiel #9
0
    protected override void OnQueryPageSettings(QueryPageSettingsEventArgs e)
    {
        base.OnQueryPageSettings(e);

        e.PageSettings.Landscape = true;
    }
 internal override void ReportQueryPage(object sender, QueryPageSettingsEventArgs qpea)
 {
     qpea.PageSettings.Landscape = base.ReportSettings.Landscape;
     base.ReportQueryPage(sender, qpea);
 }
Beispiel #11
0
 internal override void ReportQueryPage(object sender, QueryPageSettingsEventArgs qpea)
 {
     base.ReportQueryPage(sender, qpea);
 }
Beispiel #12
0
 // Occurs immediately before each PrintPage event.
 private void QueryPageSettings(object sender, QueryPageSettingsEventArgs e)
 {
     Helpers.Logging.TraceMessage($"Print.QueryPageSettings");
 }
Beispiel #13
0
        }  // End PrintCard

        void printDocument_QueryPageSettings(object sender, QueryPageSettingsEventArgs e)
        {
            //e.PageSettings.PrinterSettings.
        }  // End printDocument_QueryPageSettings
Beispiel #14
0
 private void printDocument1_QueryPageSettings(object sender, QueryPageSettingsEventArgs e)
 {
 }
 protected override void OnQueryPageSettings(QueryPageSettingsEventArgs ev)
 {
     ev.PageSettings.Margins = DefaultPageSettings.Margins;
 }
Beispiel #16
0
 protected override void OnQueryPageSettings(QueryPageSettingsEventArgs e)
 {
     e.PageSettings = (PageSettings)m_pageSettings.Clone();
 }
Beispiel #17
0
 void printDocument_QueryPageSettings(object sender, QueryPageSettingsEventArgs e)
 {
     e.PageSettings = this.currentGDIPageSettings;
 }
Beispiel #18
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="evtArgs"></param>
 protected override void OnQueryPageSettings(QueryPageSettingsEventArgs evtArgs)
 {
 }
Beispiel #19
0
 private void printdoc1_QueryPageSettings(object sender, QueryPageSettingsEventArgs e)
 {
     GlobalV.changeBarcode = BarcodeDrawFactory.Code39WithoutChecksum;
     GlobalV.changeBar     = GlobalV.changeBarcode.Draw("#LF00649", 100, 2);
 }
 protected override void OnQueryPageSettings(QueryPageSettingsEventArgs e)
 {
     e.PageSettings = (PageSettings)m_pageSettings.Clone();
 }
Beispiel #21
0
 private void printDocument1_QueryPageSettings(object sender, QueryPageSettingsEventArgs e)
 {
     e.PageSettings.PaperSize = new System.Drawing.Printing.PaperSize("A4 (210 x 297 mm)", 827, 1155);//(60 + dataGridView1.Rows.Count * 10) * 4
     e.PageSettings.Margins   = new System.Drawing.Printing.Margins(0, 0, 0, 0);
 }