Page 1 of 1

[resolved]Report Arguments

Posted: Mon Sep 14, 2009 3:24 pm
by Leandro
I opened the file ReportArguments.mrt of the examples winForm through a project web using StiWebViewer

But I am not getting to carry the report, when clicking in OK of Form
I added the code below in the page_load

Code: Select all

protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            StiReport mrt = new StiReport();
            mrt.Load("G:\\jrnet\\Report\\ReportArguments.mrt");
            StiWebViewer1.Report = mrt;   
        }

    }

When carrying it it makes up the form it is exhibited, when clicking in the ok StiWebViewer, but it doesn't carry the report.
What should be made ?

[resolved]Report Arguments

Posted: Tue Sep 15, 2009 11:20 am
by Jan
Hello Leandro,

We will check this problem. I will inform you about progress.

Thank you.

[resolved]Report Arguments

Posted: Tue Sep 15, 2009 2:16 pm
by Leandro
Ok, I'm await

[resolved]Report Arguments

Posted: Wed Sep 16, 2009 7:30 am
by Jan
Hello,

Unfortunatelly you can't call report rendering from PageLoad event is report contains dialogs. Please more it to button click event or something similar. Also you need use one of render mode with cache for StiWebViewer.

Thank you.

[resolved]Report Arguments

Posted: Wed Sep 16, 2009 11:48 am
by Leandro
Hello Jan.
Didn't I understand, could it happen an example of as it should be the code?

[resolved]Report Arguments

Posted: Wed Sep 16, 2009 1:32 pm
by Leandro
It worked, I changed only the option RenderMode for UseCache and certain worked.

Which the difference when RenderMode this in UseCache and when this in ajax?

[resolved]Report Arguments

Posted: Thu Sep 17, 2009 4:33 am
by Jan
Hello,

Report engine store report in page cache when you use one of CacheMode. This mode allow increase speed of report rendering in some case. This mode required for reports with dialogs.
Ajax mode provide more flexible StiWebViewer. In this mode web viewer use ajax request to server and most of actions in StiWebViewer does not require page reloading from server.

Thank you.

[resolved]Report Arguments

Posted: Thu Sep 17, 2009 7:42 am
by Leandro
Ok, will make more tests using dialogs and CacheMode.
Until the moment, thank you.