Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Problems with Crystal Reports

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,28363
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Problems with Crystal Reports
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Problems with Crystal Reports - 11/27/2005 9:19:48 PM   
  Malyssia


Posts: 2
Score: 0
Joined: 11/27/2005
Status: offline
Original message moved by Snipah
Reason :
Hello.

In a web site I have a embebed Crystal object.
 
<OBJECT ID="CRViewer"
      CLASSID="CLSID:460324E8-CFB4-4357-85EF-CE3EBFE23A62"
      WIDTH=100% HEIGHT=99%
      CODEBASE="/crystalreportviewers11/ActiveXControls/ActiveXViewer.cab#Version=11,0,0,893" VIEWASTEXT>
<PARAM NAME="EnableRefreshButton" VALUE=1>
<PARAM NAME="EnableGroupTree" VALUE=1>
<PARAM NAME="DisplayGroupTree" VALUE=1>
<PARAM NAME="EnablePrintButton" VALUE=1>
<PARAM NAME="EnableExportButton" VALUE=1>
<PARAM NAME="EnableDrillDown" VALUE=1>
<PARAM NAME="EnableSearchControl" VALUE=1>
<PARAM NAME="EnableAnimationControl" VALUE=1>
<PARAM NAME="EnableZoomControl" VALUE=1>
</OBJECT>
 
I only want to pass two parameters (Project_id y id_language) but after doing this to set a value
 
Session("oRpt").ParameterFields.GetItemByName("project_id").AddCurrentValue(cInt(nProject))
Session("oRpt").ParameterFields.GetItemByName("id_language").AddCurrentValue(Session("TKLANGCODE"))
 
I try to extract their value with  
 
Response.write Session("oRpt").ParameterFields.Item(1).Value & "/<P>"
Response.write Session("oRpt").ParameterFields.Item(2).parameterfieldname & "-/" & Session("oRpt").ParameterFields.Item(2).Value & "/<P>"
 
but I get null values (I dont know if its the correct way, I suppose it is not)
 
and afterall, launching the report read with
 
session("oRpt").ReadRecords
 
I get an exception
 
-2147189155 - Failed to open the connection.
 
Can anyone help me?
 
Thanks a lot
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> Problems with Crystal Reports Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts