Click here to Skip to main content
15,894,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi!

I am using vb.net windows application 2005 with ms access.
I want to generate report with filter.
I give sql query when I create dataset and also execute at that time its run ok.
But I dont know how to give prarameter value for that repot in report form.

Please any one tell me how to assign parameter value?
Posted
Updated 25-Jul-10 22:34pm
v2
Comments
Sandeep Mewara 26-Jul-10 6:00am    
You need to mention Crystal or SSRS. Further, did you tried to search for it?

1 solution

To pass parameter to crystal report, you can use something similar to

VB
Dim cr As New CrystalDecisions.CrystalReports.Engine.ReportDocument
cr.Load(strReportPath)
cr.SetDataSource(DS.Tables("Customers"))
cr.SetParameterValue("StartDate", strMyParmValue)
CrystalReportViewer1.ReportSource = cr
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900