Data Connectivity
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Data Connectivity
Message Icon Topic: CR 9 versus CR XI Post Reply Post New Topic
Author Message
intan
Newbie
Newbie
Avatar

Joined: 11 Jul 2008
Location: Malaysia
Online Status: Offline
Posts: 2
Quote intan Replybullet Topic: CR 9 versus CR XI
    Posted: 11 Jul 2008 at 2:23am
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
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.015 seconds.