I've managed to make visible the refresh button on CR9 InteractiveViewer but unable to use it...any code missing?
FYI, these are my modified version of the InteractiveViewer.asp :
<%@ Language=VBScript CodePage=65001 ENABLESESSIONSTATE = False %>
<% Option Explicit
' Note - the CodePage=65001 is needed to display Unicode text correctly in the viewer
' if Session is null for ProcessHttpRequest
Dim objectFactory
Set objectFactory = CreateObject("CrystalReports.ObjectFactory.2"
Response.ExpiresAbsolute = Now() - 1
Dim viewer
Set viewer = objectFactory.CreateObject("CrystalReports.CrystalReportInteractiveViewer"
viewer.Name = "page"
viewer.IsOwnForm = true
viewer.IsOwnPage = true
viewer.HasRefreshButton = true '<--- I did this!!! but failed to function
Dim theReportName
theReportName = Request.Form("ReportName"
if theReportName = "" then theReportName = Request.QueryString("ReportName"
viewer.URI = "interactiveViewer.asp?ReportName=" + Server.URLEncode(theReportName)
Dim clientDoc
Set clientDoc = objectFactory.CreateObject("CrystalClientDoc.ReportClientDocument"
clientDoc.Open theReportName
viewer.ReportSource = clientDoc.ReportSource
Dim BooleanSearchControl
Set BooleanSearchControl = objectFactory.CreateObject("CrystalReports.BooleanSearchControl"
BooleanSearchControl.ReportDocument = clientDoc
viewer.BooleanSearchControl = BooleanSearchControl
viewer.ProcessHttpRequest Request, Response, Null
' ReportClientDocument will be automatically closed when clientDoc is released
%>
I GOT THESE ERROR MSG WHEN CLICK ON THE REFRESH BUTTON ON THE CR9 Viewer toolbar :
Technical Information (for support personnel)
Error Type:
Microsoft VBScript runtime (0x800A01FB)
An exception occurred: 'ProcessHttpRequest'
/rassamples/en/asp/rPortfolio/HTMLViewers/interactiveViewer.asp, line 35
Browser Type:
Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
Page:
POST 1706 bytes to /rassamples/en/asp/rPortfolio/HTMLViewers/interactiveViewer.asp
POST Data:
__CrystalEventTarget=page&__CrystalEventArgument=tb%3Drefresh&__CrystalCompositeViewState=pageCrystalForm%3Dxsi%253Atype%253D%2522CrystalReports.PropertyBag%2522%2520version%253D%25222%2522%253E%253CP . . .
Anybody, pls help.
FYI, these are my modified version of the InteractiveViewer.asp :
<%@ Language=VBScript CodePage=65001 ENABLESESSIONSTATE = False %>
<% Option Explicit
' Note - the CodePage=65001 is needed to display Unicode text correctly in the viewer
' if Session is null for ProcessHttpRequest
Dim objectFactory
Set objectFactory = CreateObject("CrystalReports.ObjectFactory.2"
Response.ExpiresAbsolute = Now() - 1
Dim viewer
Set viewer = objectFactory.CreateObject("CrystalReports.CrystalReportInteractiveViewer"
viewer.Name = "page"
viewer.IsOwnForm = true
viewer.IsOwnPage = true
viewer.HasRefreshButton = true '<--- I did this!!! but failed to function
Dim theReportName
theReportName = Request.Form("ReportName"
if theReportName = "" then theReportName = Request.QueryString("ReportName"
viewer.URI = "interactiveViewer.asp?ReportName=" + Server.URLEncode(theReportName)
Dim clientDoc
Set clientDoc = objectFactory.CreateObject("CrystalClientDoc.ReportClientDocument"
clientDoc.Open theReportName
viewer.ReportSource = clientDoc.ReportSource
Dim BooleanSearchControl
Set BooleanSearchControl = objectFactory.CreateObject("CrystalReports.BooleanSearchControl"
BooleanSearchControl.ReportDocument = clientDoc
viewer.BooleanSearchControl = BooleanSearchControl
viewer.ProcessHttpRequest Request, Response, Null
' ReportClientDocument will be automatically closed when clientDoc is released
%>
I GOT THESE ERROR MSG WHEN CLICK ON THE REFRESH BUTTON ON THE CR9 Viewer toolbar :
Technical Information (for support personnel)
Error Type:
Microsoft VBScript runtime (0x800A01FB)
An exception occurred: 'ProcessHttpRequest'
/rassamples/en/asp/rPortfolio/HTMLViewers/interactiveViewer.asp, line 35
Browser Type:
Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
Page:
POST 1706 bytes to /rassamples/en/asp/rPortfolio/HTMLViewers/interactiveViewer.asp
POST Data:
__CrystalEventTarget=page&__CrystalEventArgument=tb%3Drefresh&__CrystalCompositeViewState=pageCrystalForm%3Dxsi%253Atype%253D%2522CrystalReports.PropertyBag%2522%2520version%253D%25222%2522%253E%253CP . . .
Anybody, pls help.