PDA

Click to See Complete Forum and Search --> : Crital report handling by VB


qfmomen
Aug 15th, 2000, 11:02 AM
I wanna to send parameters to cristal report from VB. THere is method of [parameterfields] of cristal repoprt but how it will be used because the syntax which is told us in help of cristal report is not accepted by VB.

Apocalypse Dude
Aug 16th, 2000, 09:19 PM
To pass parameters from vb to crystal you will need to create 2 empty formulas in the report eg startcode and endcode then use this code in the VB.

CrystalReport1.Formulas(0) = "startcode= " & txtStartCode.text
CrystalReport1.Formulas(1) = "endcode= " & txtEndCode.text

Also remove the parameters in the report.