Exemplo n.º 1
0
 private void Process(PdfPage page, Com.Delta.PrintManager.Engine.ICustomPaint element)
 {
     if (element is TextField)
     {
         ProcessTextField(page, (TextField)element);
     }
     else if (element is PictureBox)
     {
         ProcessPicture(page, (PictureBox)element);
     }
     else if (element is StyledTable)
     {
         ProcessStyledTable(page, (StyledTable)element);
     }
     else if (element is ChartBox)
     {
         ProcessChartBox(page, (ChartBox)element);
     }
     else if (element is Timeline)
     {
         ProcessTimeline(page, (Timeline)element);
     }
     else if (element is Com.Delta.PrintManager.Engine.Line)
     {
         ProcessLine(page, (Com.Delta.PrintManager.Engine.Line)element);
     }
     else if (element is Com.Delta.PrintManager.Engine.Elipse)
     {
         ProcessElipse(page, (Com.Delta.PrintManager.Engine.Elipse)element);
     }
     else if (element is Com.Delta.PrintManager.Engine.Box)
     {
         ProcessBox(page, (Com.Delta.PrintManager.Engine.Box)element);
     }
     else if (element is Com.Delta.PrintManager.Engine.Barcode)
     {
         ProcessBarcode(page, (Com.Delta.PrintManager.Engine.Barcode)element);
     }
     else if (element is Com.Delta.PrintManager.Engine.Map)
     {
         ProcessMap(page, (Com.Delta.PrintManager.Engine.Map)element);
     }
     else if (element is Com.Delta.PrintManager.Engine.Scatter)
     {
         ProcessScatter(page, (Com.Delta.PrintManager.Engine.Scatter)element);
     }
     else if (element is Com.Delta.PrintManager.Engine.UserPaint)
     {
         ProcessUserPaint(page, (Com.Delta.PrintManager.Engine.UserPaint)element);
     }
     else if (element is Com.Delta.PrintManager.Engine.RichTextField)
     {
         ProcessRichTextField(page, (Com.Delta.PrintManager.Engine.RichTextField)element);
     }
 }
Exemplo n.º 2
0
 private void ProcessElement(PdfPage page, Com.Delta.PrintManager.Engine.ICustomPaint element)
 {
     if (element.Anchored)
     {
         if (element.Ready && !element.Displayed)
         {
             Process(page, element);
             if (element.Done)
             {
                 element.Displayed = true;
             }
         }
     }
     else
     {
         Process(page, element);
     }
 }