Beispiel #1
0
        private void PrintingEndedHandler( object sender, EndPrintEventArgs e )
        {
            var printDocument = sender as PrintDocument;
            if ( printDocument != null )
            {
                printDocument.BeginPrint -= PrintingStartedHandler;
                printDocument.EndPrint -= PrintingEndedHandler;
                printDocument.PrintPage -= PrintPageHandler;
            }
            _printPage.Child = null;

            //Added Control back to UI
            //Note: the removing and adding of the this control happens in such a way that the user never
            //even knows that it happens
            ( _parent as Grid ).Children.Add ( ControlToPrint );
        }
 private void OnSchedulerEndPrint(object sender, EndPrintEventArgs e)
 {
     Scheduler.xScheduleView.Width = double.NaN;
     Scheduler.xScheduleView.Height = double.NaN;
     Scheduler.xScheduleView.UpdateLayout();
     this.SchedulerIsBusy = false;
 }
        private void printDocument_EndPrint(object sender, EndPrintEventArgs e)
        {
            // if an error occurred, alert the user to the error
            if (e.Error != null) { MessageBox.Show(e.Error.Message); }
            else
            {
                Chart _chart = this.Chart_Grid.Children.OfType<Chart>().FirstOrDefault();
                if (_chart != null)
                {
                    //_chart.Width = _chartOriginalWidth;
                    //_chart.Height = _chartOriginalHeight;
                    //_chart.Margin = new Thickness(0);

                    // Change back the grid's original state
                    //this.Chart_Container.Width = _gridOriginalWidth;
                    _chart.IsEnabled = true;
                }
            }
        }
		/// <summary>
		/// This event is used to reset busy and printing status and also display message of completion.
		/// </summary>
		private void PrintDocument_EndPrint(object sender, EndPrintEventArgs e)
		{
			IsBusy = IsPrinting = false;			
			Status = Resources.Strings.PrintCompleted;
		}
 void pd_EndPrint(object sender, EndPrintEventArgs e)
 {
     this.DialogResult = false;
 }
 void OnEndPrint(object sender, EndPrintEventArgs e)
 {
     if (completedCallback != null)
     {
         completedCallback(e.Error);
     }
 }
 void doc_EndPrint(object sender, EndPrintEventArgs e)
 {
     printPanel.Children.Remove(LayoutRoot);
     this.Content = LayoutRoot;
 }
 void printDocument_EndPrint(object sender, EndPrintEventArgs e)
 {
     MessageBox.Show("Stampa completata");
 }
 void page4_EndPrint(object sender, EndPrintEventArgs e)
 {
     NavigationService.Refresh();
 }
Beispiel #10
0
 private void pdoc_EndPrint(object sender, EndPrintEventArgs e) {
   this.PartsToPrint = null;
   Diagram diagram = this.Diagram;
   if (diagram == null) return;
   DiagramPanel panel = diagram.Panel;
   if (panel == null) return;
   panel.ReleasePrintingPanel();
   panel.IsVirtualizing = this._wasVirtualizing;
   // Silverlight adornments might have wrong offsets afterwards -- fix up:
   foreach (Part p in diagram.SelectedParts) p.RefreshAdornments();
   panel.UpdateScrollTransform();
   diagram.Cursor = null;
 }
 void page3_EndPrint(object sender, EndPrintEventArgs e)
 {
     if (isMorePages3)
     {
         cw3.Show();
     }
     else
     {
         NavigationService.Refresh();
     }
 }
 void page2_EndPrint(object sender, EndPrintEventArgs e)
 {
     //Showing the page 4 printing confirm dialogue
     if (isMorePages2)
     {
         cw.Show();
     }
     else
     {
         NavigationService.Refresh();
     }
 }
 void page1_EndPrint(object sender, EndPrintEventArgs e)
 {
     if (isMorePages)// && counter == 0)
     {
         counter += 1;
         //cw.Show();
         cw2.Show();
     }
 }
 void doc_EndPrint(object sender, EndPrintEventArgs e)
 {
     this.img.RenderTransform = null;
     printPanel.Children.Clear();
     this.LayoutRoot.Children.Add(img);
 }
Beispiel #15
0
 private void pdoc_EndPrint(object sender, EndPrintEventArgs e) {
   Diagram diagram = this.Diagram;
   if (diagram == null) return;
   DiagramPanel panel = diagram.Panel;
   if (panel == null) return;
   panel.ReleasePrintingPanel();
   panel.UpdateScrollTransform();
   diagram.Cursor = null;
 }