Hello,
after upgrade the version of Telerik reporting Q2 2010 to Q1 2011 the report does not work
the report:
public partial class MasterReport : Telerik.Reporting.Report
{
public MasterReport()
{
InitializeComponent();
}
private void MasterReport_NeedDataSource(object sender, EventArgs e)
{
Telerik.Reporting.Processing.Report report = (Telerik.Reporting.Processing.Report)sender;
// recupere la liste ID facture
string[] idArray;
idFactureArray = report.Parameters["List"].Value.ToString().Split(',');
Telerik.Reporting.Drawing.Unit unitX = Telerik.Reporting.Drawing.Unit.Inch(0);
Telerik.Reporting.Drawing.Unit unitY = Telerik.Reporting.Drawing.Unit.Inch(0);
SizeU size = new SizeU(Telerik.Reporting.Drawing.Unit.Inch(1), Telerik.Reporting.Drawing.Unit.Inch(0.5));
List<LettreRappel> detailReports = new List<LettreRappel>();
LettreRappel detailReport1;
//
for (int i = 0; i < idArray.Length; i++)
{
detailReport1 = new LettreRappel();
detailReport1.ReportParameters["Id"].Value = idArray[i];
detailReports.Add(detailReport1);
}
foreach (LettreRappel detailReport in detailReports)
{
SubReport subReport;
subReport = new SubReport();
subReport.Location = new PointU(unitX, unitY);
subReport.Size = size;
unitY = unitY.Add(Telerik.Reporting.Drawing.Unit.Inch(0.5));
subReport.ReportSource = detailReport;
detail.Items.Add(subReport);
}
}
}
after upgrade the version of Telerik reporting Q2 2010 to Q1 2011 the report does not work
the report:
public partial class MasterReport : Telerik.Reporting.Report
{
public MasterReport()
{
InitializeComponent();
}
private void MasterReport_NeedDataSource(object sender, EventArgs e)
{
Telerik.Reporting.Processing.Report report = (Telerik.Reporting.Processing.Report)sender;
// recupere la liste ID facture
string[] idArray;
idFactureArray = report.Parameters["List"].Value.ToString().Split(',');
Telerik.Reporting.Drawing.Unit unitX = Telerik.Reporting.Drawing.Unit.Inch(0);
Telerik.Reporting.Drawing.Unit unitY = Telerik.Reporting.Drawing.Unit.Inch(0);
SizeU size = new SizeU(Telerik.Reporting.Drawing.Unit.Inch(1), Telerik.Reporting.Drawing.Unit.Inch(0.5));
List<LettreRappel> detailReports = new List<LettreRappel>();
LettreRappel detailReport1;
//
for (int i = 0; i < idArray.Length; i++)
{
detailReport1 = new LettreRappel();
detailReport1.ReportParameters["Id"].Value = idArray[i];
detailReports.Add(detailReport1);
}
foreach (LettreRappel detailReport in detailReports)
{
SubReport subReport;
subReport = new SubReport();
subReport.Location = new PointU(unitX, unitY);
subReport.Size = size;
unitY = unitY.Add(Telerik.Reporting.Drawing.Unit.Inch(0.5));
subReport.ReportSource = detailReport;
detail.Items.Add(subReport);
}
}
}