WebReport: Setting report at runtime

Hello!

I have a problem: when I create a new Report object (Report report = new Report()), I call the Load(filename) and try to set to a WebReport component (WebReport1.Report = report) it doesn't shows anything...

But, if I load the .frx directly using WebRepor1.Report.Load(filename) it works...

Do I have to set something before or after WebReport1.Report = report or it really doesn't work???

Thank you forward for your help!

Comments

  • edited 8:11PM
    Hello,

    I do the following in the WebReport.StartReport event handler and it works:
            protected void WebReport1_StartReport(object sender, EventArgs e)
            {
                Report report = new Report();
                report.Load(Page.MapPath(@"~\App_Data\1.frx"));
                WebReport1.Report = report;
            }
    

    If you have an example, please send it to tz@fast-report.com.

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.