Changing the chart type at runtime
Changing the chart type at runtime
Is it possible to change the Chart type at runtime ?, if I want to change chart type from bar to pie?
Changing the chart type at runtime
Code: Select all
Chart.Area = new StiPieArea();
Changing the chart type at runtime
I am having object StiReport and I have designed report at design time but how shoud i chage the type of report at runutiem?
Changing the chart type at runtime
I am having object of StiReport and I have designed report (chart) at design time but how should i chage the type of report at runutieme?
Changing the chart type at runtime
You can use following code:
Thank you.
Code: Select all
StiChart chart = report.GetComponents()["Chart1"] as StiChart;
chart.Area= new StiPieArea();
report.Render();
Changing the chart type at runtime
I have tried to chage the type of chart at runtime in vb.net but It is showing empty chart
Report.Load(Application.StartupPath + "\status.mrt")
Dim chart As StiChart = CType(Report.GetComponents()("Chart1"), StiChart)
chart.Area = New StiPieArea()
Report.Render()
Report.Compile()
Report.Show()
Can you tell me the code to do it?
Report.Load(Application.StartupPath + "\status.mrt")
Dim chart As StiChart = CType(Report.GetComponents()("Chart1"), StiChart)
chart.Area = New StiPieArea()
Report.Render()
Report.Compile()
Report.Show()
Can you tell me the code to do it?
Changing the chart type at runtime
For also you need assign new series (Pie based).
Thank you.
Thank you.