It's a must to setting rendermode to ajaxwithcache for showing report?
Posted: Sun Feb 06, 2011 11:11 pm
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
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