Call The web Designer in the Page_Load
Posted: Mon Mar 30, 2009 5:09 am
In Visual studio 2005 , im using this code:
and It is working
but if i try to put this code in the Page_Load , it isn't working
Is it possible to call the WebDesigner in the Page_Load method ? and if it's not why ? and is it going to be possible in a near future ?
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);
}