Hi,
I have 3 ChartViews on a form, I wish to export each to a separate Image.
I would like my routine to be generic so I can reuse it for many Chart sets.
I am trying the following.
foreach (ChartView x in PnlCharts.Controls.OfType<
ChartView
>())
{
x.ExportToImage();
}
However the ExportToImage Method is not available. It only seems to be available if I directly reference the instance inserted into the form.
eg ChartView1.ExportToImage();
Am I missing something here?
Why can I export from the instance, but not from the same instance when it is contained within a list?