|
I have a problem in redirect.asp and activexviewer.asp in Crystal Report Server 9 for development server.But in Production is using Crystal Report Server XI.Is any body knows what is the different between those two CR.
I got error "Server has been disable by the CMS"
Below are the code:
<%
Session("ReportName") = "6mosProgramHistory.rpt"
Response.Redirect("viewers/ActiveXViewer.asp")
%>
**************************************************************
rptserver.asp file
<%@ Language=VBScript %>
<%
' Copyright © 1997-2002 Crystal Decisions, Inc.
Option Explicit
'Create an instance of the object factory. It is used to create
'report objects more efficiently.
Dim objectFactory
Set objectFactory = Server.CreateObject("CrystalReports.ObjectFactory")
'Check to see if the report has been opened
If Not IsObject(Session("oClientDoc")) Then
Dim clientDocument
Set clientDocument = objectFactory.CreateObject("CrystalClientDoc.ReportClientDocument")
Call CheckForError
'Store the client document in the session for subsequent requests
Set Session("oClientDoc") = clientDocument
'Support passing the report name in the session or in the URL
Dim reportName
reportName = Session("ReportName")
If reportName = "" Then
reportName = Request.QueryString("rpt")
End If
If reportName = "" Then
SetEMFError 1, "A report name was not specified"
Session.Abandon
Response.End
End If
'Open the report
clientDocument.Open(reportname)
Call CheckForError
End if
|