[resolved]Report Arguments

Stimulsoft Reports.WEB discussion
Post Reply
Leandro
Posts: 74
Joined: Tue Aug 08, 2006 9:07 am
Location: Brasil

[resolved]Report Arguments

Post 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 ?
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

[resolved]Report Arguments

Post by Jan »

Hello Leandro,

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

Thank you.
Leandro
Posts: 74
Joined: Tue Aug 08, 2006 9:07 am
Location: Brasil

[resolved]Report Arguments

Post by Leandro »

Ok, I'm await
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

[resolved]Report Arguments

Post 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.
Leandro
Posts: 74
Joined: Tue Aug 08, 2006 9:07 am
Location: Brasil

[resolved]Report Arguments

Post by Leandro »

Hello Jan.
Didn't I understand, could it happen an example of as it should be the code?
Leandro
Posts: 74
Joined: Tue Aug 08, 2006 9:07 am
Location: Brasil

[resolved]Report Arguments

Post 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?
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

[resolved]Report Arguments

Post 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.
Leandro
Posts: 74
Joined: Tue Aug 08, 2006 9:07 am
Location: Brasil

[resolved]Report Arguments

Post by Leandro »

Ok, will make more tests using dialogs and CacheMode.
Until the moment, thank you.
Post Reply