This is an internal control that allows using third-party WinForms controls inside a Section report (mainly, a code-based Section report). The main target area of this control is using scripts.
CustomControl is not supported in:
VB code. Add this code after the InitializeComponent method |
Copy Code
|
---|---|
Dim chart = CType(Me.customControl1.Control, System.Windows.Forms.DataVisualization.Charting.Chart) Dim chartArea = New System.Windows.Forms.DataVisualization.Charting.ChartArea("Main") chart.ChartAreas.Add(chartArea) Dim seriesColumns = New System.Windows.Forms.DataVisualization.Charting.Series("Columns") For Each val In New Single() {6, 14, 3, 4, 2, 2, 1, 3} seriesColumns.Points.Add(Convert.ToDouble(val)) Next seriesColumns.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Radar chart.Series.Add(seriesColumns) |
C# code. Add this code after the InitializeComponent method |
Copy Code
|
---|---|
var chart = (System.Windows.Forms.DataVisualization.Charting.Chart)this.customControl1.Control; var chartArea = new System.Windows.Forms.DataVisualization.Charting.ChartArea("Main"); chart.ChartAreas.Add(chartArea); var seriesColumns = new System.Windows.Forms.DataVisualization.Charting.Series("Columns"); foreach (var val in new float[] { 6, 14, 3, 4, 2, 2, 1, 3 }) seriesColumns.Points.Add(Convert.ToDouble(val)); seriesColumns.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Radar; chart.Series.Add(seriesColumns); |