Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set the view type for CrystalReportView object?

Status
Not open for further replies.

chenkang

Programmer
Jan 22, 2002
20
0
0
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top