To bind the report I use:
crDaily1.SetDataSource((DataTable)dtDaily); crDaily1.SetParameterValue("pPeriod", title);
If I put this code in
private void FormReportDaily_Shown(object sender, EventArgs e)sometimes the dummy data that appears in "Main Report Preview" is shown at runtime. I really don't know the reason?!.
Resolution:
Put the binding code
crDaily1.SetDataSource((DataTable)dtDaily); crDaily1.SetParameterValue("pPeriod", title);
in the constructor:
public FormReportDaily()