Page 1 of 1

Ajax Issue

Posted: Fri Jan 04, 2008 5:39 pm
by luis_rodriguez@compupartes.com
Hello,

Greetings from the other side of the world (Nogales, Sonora, MEXICO).

Recently we buyed StimultReport to integrate it with some applications. Already we tested it with a simple report
with about 70 pages but we have found an issue:

1.- In the Designer Report it shows us 70 pages and we can navigate from page 1 to page 2 ... correctly.
2.- We have created a Web Site and we used stiwebviewer and we placed code at server side as given:

----------------------------------------------- Server Side Code -----------------------------
Imports Stimulsoft.Report
Imports Stimulsoft.Report.Web
Imports System
Imports System.data

Partial Class _Default
Inherits System.Web.UI.Page
Dim report As New StiReport
Dim path As String = "C:\Inetpub\wwwroot\WebSite1\App_Code\Report.Dll"


Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

If Not IsPostBack Then

report = StiReport.GetReportFromAssembly(path)
Me.StiWebViewer1.Report = report
Else
If Me.StiWebViewer1.RenderMode = StiRenderMode.Ajax Then

report = StiReport.GetReportFromAssembly(path)
Me.StiWebViewer1.Report = report

End If
End If
End Sub

End Class
--------------------------------------- End Server Side Code ---------------------------------


When we use the UseCache rendermode property, we can navigate very fast in every page.
But when we use ajax rendermode property, we can navigate but it's too slow, if we run it in debug mode
we saw that the report is like rendered everytime we navigate to another page.

Thank You.

:dumb:

Ajax Issue

Posted: Mon Jan 07, 2008 6:04 am
by Vital
If you are use mode UseCache then report will be stored in page cache and don't need to rerender on each pageload phase. In Ajax mode you need rerender mode on each pageload phase.

Thank you.