Wednesday, June 10, 2009

PARAMETERS REQUIRED IN CRYSTAL REPORT

Dear Friends, When I was new to Crystal Report in Visual Studio. The very first problem that I was encoutered was how to pass parameters to Crystal Report from vb.net. And I was amazed when I found the solution quite easy.

Solution:

You must first make an instance of the report object

dim rpt as new reportname

now you can pass the parameter to report

rpt.setparametervalues("ParameterName",value)

For Example

rpt.setParameterValues("Name",value)

I hope this will help you alot.

No comments: