|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Passing Parameter to Cyrstal Report from VB Code
I have created a report in Crystal Report which uses two parameter Fields FromDt and ToDt.. I am calling that report from my vb application using a Crystal Control.. I pass the parameter as follows ...
Cry.ParameterFields(0) = "FromDt;" & Format(dtpFrom.Value, "DD/MM/YYYY") & ";False" Cry.ParameterFields(1) = "ToDt;" & Format(dtpTo.Value, "DD/MM/YYYY") & ";False" It works fine.. But the problem is while running the report it promts for Parameters even if I am pasing it through code... Can any one help me... I am waiting for some one to gikve me respose... Thanks in Advance |
|
#2
|
|||
|
|||
|
try adding this line to your code after you initialize your report,
assuming rpt is the name of your report rpt.EnableParameterPrompting = False hope this helps |
|
#3
|
|||
|
|||
|
Sorry ! Jennyjane, Actually as I have mentioned I am using Crystal Report Activex Control so I don't have and report object to try your code........ Give me some thing that is usefull in case of Crystal Contrl
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > Passing Parameter to Cyrstal Report from VB Code |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|