How to Run Web Reports Designer?

Top  Previous  Next

 

For running the Web report designer it is necessary to put non visual StiWebDesignerSL component on the form and, in the event handler of a control, to call the Design() method:

 

 

ASP.NET:

 

<cc1:StiWebDesignerSL ID="StiWebDesignerSL1" runat="server" />

 

 

 

C#:
 

protected void Button1_Click(object sender, EventArgs e)

{

  StiWebDesignerSL1.Design();

}

 

 

For loading a report in the Web designer, the method of calling can be slightly modified:

 

 

C#:
 
protected void Button1_Click(object sender, EventArgs e)

{

  StiReport report = new StiReport();

   report.Load("D:\\SimpleList.mrt");

   StiWebDesignerSL1.Design(report);

}
 

 

 

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)