IIS ASP - Crystal Reports 9 + ASP 3 - No open report

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > April 2006 > Crystal Reports 9 + ASP 3 - No open report





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Crystal Reports 9 + ASP 3 - No open report
mutherwurm

2006-04-27, 1:27 pm

Hi,

I=B4m have an ASP Page and Crystal Reports. My page, load very well, no
erros, nothing anormal. But, my CR no open. Show the component
(JavaApplet) but ... nothing.
The CR connect to database, verify the tables with SetLogonInfo. No
errors.

My ASP page code:

Set session("oApp") =3D Server.CreateObject("CrystalRuntime.Application")
Set session("oRpt") =3D
session("oApp").OpenReport(server.MapPath("..\Reports\Teste.rpt"), 1)
Session("oRpt").MorePrintEngineErrorMessages =3D False
Session("oRpt").EnableParameterPrompting =3D False

set ReportDatabase =3D Session("oRpt").Database

Set crdatabasetables =3D ReportDatabase.tables
Set crtable =3D crdatabasetables.Item(1)
crtable.SetLogonInfo "ETRADE", "dbEcomex", "ecomex", "hexasol"

set session("ParamCollection") =3D Session("oRpt").Parameterfields
set Param1 =3D session("ParamCollection").Item(1)
Call Param1.SetCurrentValue(Cstr(Request("Param")))

If IsObject(session("oPageEngine")) Then
Set session("oPageEngine") =3D nothing
End If

Set session("oPageEngine") =3D session("oRpt").PageEngine
(=2E..)

And I=B4m using the applet (Java) to open reports in page. But, the is
giant code and I don=B4t put this code here.

Anyone, know what occours in my CR ?

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com