It's a must to setting rendermode to ajaxwithcache for showing report?

Stimulsoft Reports.WEB discussion
Post Reply
stvhui
Posts: 51
Joined: Wed Apr 22, 2009 3:12 am

It's a must to setting rendermode to ajaxwithcache for showing report?

Post by stvhui »

Hello to you,

I'm newbie in web world, using vb.net 2005, Stimulsoft Report 2010.1.700.0

My code to showing report is :

Protected Sub ASPxButton2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ASPxButton2.Click
Dim appdir As String = HttpContext.Current.Server.MapPath(String.Empty)

Dim rpt As New StiReport

da = New OleDb.OleDbDataAdapter("select * from tblcustomer", sConn)
ds = New DataSet

da.Fill(ds)

rpt.Load(appdir & "\\rptcustomer.mrt")
rpt.RegData("dt", ds.Tables(0))

StiWebViewer1.Report = rpt
End Sub

When I clicked the button, the report is showing properly, Its show page 1, contains 30 pages.

The problem is when I clicked [next pages] in report viewer, its display blank page, why?

I tried to searching forum, found this :
http://forum.stimulsoft.com/Default.aspx?g=posts&t=1774

so, I tried to changing StiWebViewer1.rendermode from "ajax" to "ajaxwithcache"

Finally It's Work!

But I still not understood, would you mind to give some guidance or advice?

Thanks in advance.

Regards,
Steven
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

It's a must to setting rendermode to ajaxwithcache for showing report?

Post by Vladimir »

Hello, Steven

Because data are not stored in the report, you need to set a caching mode, otherwise it is necessary to connect the data and generate a report every time you have, for example, change page.

Thank you.
stvhui
Posts: 51
Joined: Wed Apr 22, 2009 3:12 am

It's a must to setting rendermode to ajaxwithcache for showing report?

Post by stvhui »

Hi Vladimir,

Thanks for yr response.

Regards,
Steven
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

It's a must to setting rendermode to ajaxwithcache for showing report?

Post by Alex K. »

Hello,

We are always glad to help you!
Let us know if you need any additional help.

Thank you.
Post Reply