Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing parameters into Crystal Reports on the web

Status
Not open for further replies.

jbrowne

Programmer
Feb 1, 2000
182
0
0
IE
Hi, I am running a web application which requires reports. I want top be able to pass parameters into the reports over the web - can anyone tell me how to do this. I know the code in a VB application for doing this is
'// Set parameters for report
CrystalReport1.ParameterFields(0) = "(First param to be passed)" & ";" & Param1 & ";" & True
CrystalReport1.ParameterFields(1) = "Second Param to be passed" & ";" & Param2 & ";" & True.
I'm not sure how to do this though when we are running the reports over the web. Can anyone help ???
 
Here is sample.
set myPara1 = session("ParamCollection").Item(1)
myParaValue1 = your string here
Call myPara1.SetCurrentValue(CStr(myParaValue1),12)

Hope this can help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top