Exemplo n.º 1
0
 private void Process(PdfPage page, Com.Delta.Print.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.Print.Engine.Line)
     {
         ProcessLine(page, (Com.Delta.Print.Engine.Line)element);
     }
     else if (element is Com.Delta.Print.Engine.Elipse)
     {
         ProcessElipse(page, (Com.Delta.Print.Engine.Elipse)element);
     }
     else if (element is Com.Delta.Print.Engine.Box)
     {
         ProcessBox(page, (Com.Delta.Print.Engine.Box)element);
     }
     else if (element is Com.Delta.Print.Engine.Barcode)
     {
         ProcessBarcode(page, (Com.Delta.Print.Engine.Barcode)element);
     }
     else if (element is Com.Delta.Print.Engine.Map)
     {
         ProcessMap(page, (Com.Delta.Print.Engine.Map)element);
     }
     else if (element is Com.Delta.Print.Engine.Scatter)
     {
         ProcessScatter(page, (Com.Delta.Print.Engine.Scatter)element);
     }
     else if (element is Com.Delta.Print.Engine.UserPaint)
     {
         ProcessUserPaint(page, (Com.Delta.Print.Engine.UserPaint)element);
     }
     else if (element is Com.Delta.Print.Engine.RichTextField)
     {
         ProcessRichTextField(page, (Com.Delta.Print.Engine.RichTextField)element);
     }
 }
Exemplo n.º 2
0
 private void ProcessElement(PdfPage page, Com.Delta.Print.Engine.ICustomPaint element)
 {
     if (element.Anchored)
     {
         if (element.Ready && !element.Displayed)
         {
             Process(page, element);
             if (element.Done)
             {
                 element.Displayed = true;
             }
         }
     }
     else
     {
         Process(page, element);
     }
 }