[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Get Crystal to run from ASP page

Asked by saturation in Business Objects, Crystal Reports Software

Tags: Crystal

I have the following code (not all of the code, just the portion that is causing the problem) and the Crystal ActiveX loads in the browser, but the report doesn't pull up and I don't get an error either.   The report does work when I run it from Crystal, so I'm not sure where my problem lies.   Can someone help?



Set session("oRpt") = session("oApp").OpenReport("c:\program files\myapp\wwwroot\reports\Crystal\MYREPORT.RPT", 1)

If Err.Number <> 0 Then
  Response.Write "Error Occurred creating Report Object: " & Err.Description & "ReportName: " & reportname & " " & Path
  Set Session("oRpt") = nothing
  Set Session("oApp") = nothing
  Session.Abandon
  Response.End
End If

For iNdx = 1 To session("oRpt").Database.Tables.Count
  session("oRpt").Database.Tables(iNdx).SetLogonInfo "", "", cstr(userid), cstr(password)
Next

session("oRpt").FormulaSyntax = 0
session("oRpt").RecordSelectionFormula = selectionFormula
session("oRpt").DiscardSavedData
session("oRpt").MorePrintEngineErrorMessages = False
session("oRpt").EnableParameterPrompting = False
[+][-]11/06/09 12:47 PM, ID: 25762902Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625