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?

Comments

  • edited 9:21AM
    annoiz wrote: »
    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?

    You should use:
    WebReport1.Refresh() command in button click event if I understood what you explained.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.