Page 1 of 1

Dynamically adding the StiReportViewer to page?

Posted: Fri Sep 17, 2010 5:34 pm
by chaves
Hi,

Can StiReportViewer be added dynamically to the web page controls collection?
If yes, what is the correct way to do it?
When I try to add it dynamically to the page I noticed that the toolbar icons are not showing.

Thank you.

Dynamically adding the StiReportViewer to page?

Posted: Mon Sep 20, 2010 1:05 am
by Vladimir
Hello,

We tested the dynamic StiWebViewer control creation and found no errors. We used the following code:

Code: Select all

protected override void OnInit(EventArgs e)
{
    base.OnInit(e);

    StiWebViewer WebViewer1 = new StiWebViewer();
    WebViewer1.ID = "WebViewer1";
    Page.Form.Controls.Add(WebViewer1);
}
Thank you.