Load report from event click
Hi,
I quite new for fast report. I tried to load report to set the reportfile on the properties and it works.
But how to load report from event button clicked?
I put this code:
protected void Button1_Click(object sender, EventArgs e)
{
WebReport1.Report.Load("report.frx");
}
protected void WebReport1_StartReport(object sender, EventArgs e)
{
WebReport1.Report.SetParameterValue("Month", ddlmonth.SelectedValue.ToString());
WebReport1.Report.SetParameterValue("Badge", userid);
}
but not working. Any advice?
I quite new for fast report. I tried to load report to set the reportfile on the properties and it works.
But how to load report from event button clicked?
I put this code:
protected void Button1_Click(object sender, EventArgs e)
{
WebReport1.Report.Load("report.frx");
}
protected void WebReport1_StartReport(object sender, EventArgs e)
{
WebReport1.Report.SetParameterValue("Month", ddlmonth.SelectedValue.ToString());
WebReport1.Report.SetParameterValue("Badge", userid);
}
but not working. Any advice?
Comments
You should use:
WebReport1.Refresh() command in button click event if I understood what you explained.