| |
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
|
|