Hello,
We use CSP to show the reports via web. Below are the sample code from CE.
Set viewer1 = Server.CreateObject( "CrystalReports.CrystalReportViewer" )
Set rptSourceFactory = iStore.EnterpriseSession.Service("", "PSReportFactory"
Set rptSource = rptSourceFactory.OpenReportSource(CInt(id))
With viewer1
.ReportSource = rptSource
.EnterpriseLogon = iStore.EnterpriseSession
.URI = CStr( Request.ServerVariables.Item("PATH_INFO"
& "?" & Request.ServerVariables.Item("QUERY_STRING"
)
End With
viewer1.ProcessHttpRequest Request, Response, Session
However, the default viewer is always the DHTML viewer. how do we change it to ActiveX viewer?
Thanks.
Kang
We use CSP to show the reports via web. Below are the sample code from CE.
Set viewer1 = Server.CreateObject( "CrystalReports.CrystalReportViewer" )
Set rptSourceFactory = iStore.EnterpriseSession.Service("", "PSReportFactory"
Set rptSource = rptSourceFactory.OpenReportSource(CInt(id))
With viewer1
.ReportSource = rptSource
.EnterpriseLogon = iStore.EnterpriseSession
.URI = CStr( Request.ServerVariables.Item("PATH_INFO"
End With
viewer1.ProcessHttpRequest Request, Response, Session
However, the default viewer is always the DHTML viewer. how do we change it to ActiveX viewer?
Thanks.
Kang