Ejemplo n.º 1
0
 internal void SetPrintManagerBase(PrintManagerBase printBase)
 {
     if (printBase == null)
     {
         return;
     }
     this.printBase = printBase;
     printBase.InValidatePreviewPanel = InValidate;
     printBase.InitializePrint(false);
     Child = printBase.CreatePage(1);
     Children.Add(Child);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Invalidates the print preview.
 /// </summary>
 /// <param name="needToInitProperties">
 /// Indicates whether the reinitialize the print properties.
 /// </param>
 public void InValidate(bool needToInitProperties)
 {
     printBase.InitializePrint(needToInitProperties);
     if (printBase.pageCount <= 0)
     {
         return;
     }
     Children.Clear();
     Child = printBase.CreatePage(1, Child);
     Children.Add(Child);
     if (InValidateParent != null)
     {
         InValidateParent();
     }
 }