Code: Select all
protected void Button1_Click(object sender, EventArgs e)
{
StiReport report = new StiReport();
report.Load(HttpContext.Current.Server.MapPath(string.Empty) + "\\Reports\\Nouveau.mrt");
StiWebDesigner1.Design(report);
}
but if i try to put this code in the Page_Load , it isn't working
Code: Select all
protected void Page_Load(object sender, EventArgs e)
{
StiReport report = new StiReport();
report.Load(HttpContext.Current.Server.MapPath(string.Empty) + "\\Reports\\Nouveau.mrt");
StiWebDesigner1.Design(report);
}