try abc

try abc

  • 1.4k
  • 306
  • 485.3k

Problem Passing parameter value to Sub report

Mar 4 2010 5:05 AM
Hello, 
I have created one crystal Report with sub report.. Sub report has a one parameter "Parameter1" which is created design time in report. which has a discrete value. now when  the report  run i want to pass the sub report parameter programatically.
for that i use the following code..

 objcrMain.SetParameterValue("Parameter1", ParamValue, "crSubreport.rpt"); 

still when report runs it prompt for parameter value.. 
this problem is specific to sub report only.. how to pass sub report parameter? if anybody has a idea, please help.

Thanks



Answers (1)