Hello,
I think i have this mostly figured out but im getting errors. Im getting trouble at this line: labelItem1.TextBlock.Text = procChart.Report.Parameters["Due Beyond"].Value.ToString;...My understanding of C# is limited so i dont see where im going wrong. Can you help me figure this out?
namespace Reports
{
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using Telerik.Reporting;
using Telerik.Reporting.Drawing;
/// <summary>
/// Summary description for DeliveryStatus___Client.
/// </summary>
public partial class DeliveryStatus___Client : Telerik.Reporting.Report
{
public DeliveryStatus___Client()
{
//
// Required for telerik Reporting designer support
//
InitializeComponent();}
//
// TODO: Add any constructor code after InitializeComponent call
//
private void chart1_ItemDataBinding(object sender, EventArgs e)
{
var procChart = ((Telerik.Reporting.Processing.Chart)sender);
Telerik.Reporting.Charting.LabelItem labelItem1 = new Telerik.Reporting.Charting.LabelItem();
Telerik.Reporting.Charting.LabelItem labelItem2 = new Telerik.Reporting.Charting.LabelItem();
labelItem1.Marker.Visible = true;
labelItem1.Name = "LegendItem1";
labelItem1.TextBlock.Text = procChart.Report.Parameters["Due Beyond"].Value.ToString;
labelItem2.Marker.Visible = true;
labelItem2.Name = "LegendItem2";
labelItem2.TextBlock.Text = procChart.Report.Parameters["Due Monday"].Value.ToString;
this.chart1.Legend.Items.AddRange(new Telerik.Reporting.Charting.LabelItem[] {
labelItem1,
labelItem2});
this.chart1.Legend.Items.AddRange(new Telerik.Reporting.Charting.LabelItem[] {labelItem1,});
}
}
}
}
I think i have this mostly figured out but im getting errors. Im getting trouble at this line: labelItem1.TextBlock.Text = procChart.Report.Parameters["Due Beyond"].Value.ToString;...My understanding of C# is limited so i dont see where im going wrong. Can you help me figure this out?
namespace Reports
{
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using Telerik.Reporting;
using Telerik.Reporting.Drawing;
/// <summary>
/// Summary description for DeliveryStatus___Client.
/// </summary>
public partial class DeliveryStatus___Client : Telerik.Reporting.Report
{
public DeliveryStatus___Client()
{
//
// Required for telerik Reporting designer support
//
InitializeComponent();}
//
// TODO: Add any constructor code after InitializeComponent call
//
private void chart1_ItemDataBinding(object sender, EventArgs e)
{
var procChart = ((Telerik.Reporting.Processing.Chart)sender);
Telerik.Reporting.Charting.LabelItem labelItem1 = new Telerik.Reporting.Charting.LabelItem();
Telerik.Reporting.Charting.LabelItem labelItem2 = new Telerik.Reporting.Charting.LabelItem();
labelItem1.Marker.Visible = true;
labelItem1.Name = "LegendItem1";
labelItem1.TextBlock.Text = procChart.Report.Parameters["Due Beyond"].Value.ToString;
labelItem2.Marker.Visible = true;
labelItem2.Name = "LegendItem2";
labelItem2.TextBlock.Text = procChart.Report.Parameters["Due Monday"].Value.ToString;
this.chart1.Legend.Items.AddRange(new Telerik.Reporting.Charting.LabelItem[] {
labelItem1,
labelItem2});
this.chart1.Legend.Items.AddRange(new Telerik.Reporting.Charting.LabelItem[] {labelItem1,});
}
}
}
}