pass argument to crystal report
-
hi i am doing on project in asp .net 2.0(with C#) and my backend is sqlserver2000 i want how to pass an argument to crystalreport plz help me using C# language
Senthil kumar
-
hi i am doing on project in asp .net 2.0(with C#) and my backend is sqlserver2000 i want how to pass an argument to crystalreport plz help me using C# language
Senthil kumar
search using the keyword "crystalreport push method" in codeproject. Yu will get the result.
Regards, Sylvester G sylvester_g_m@yahoo.com
-
hi i am doing on project in asp .net 2.0(with C#) and my backend is sqlserver2000 i want how to pass an argument to crystalreport plz help me using C# language
Senthil kumar
Hi senthil its easy refer this code..., Here i am getting values from another page so used session..., and in crystal report i am sending the values like this: in ur webpage backend code use this code: Private report As CrSalaryReport = New CrSalaryReport 'CrSalaryReport ur crystal report name... CrystalReportViewer1.ReportSource = report CrystalReportViewer1.Visible = True CrystalReportViewer1.DisplayToolbar = False report.SetDatabaseLogon("sa", "Pwd") 'sqlserver login & password report.SetParameterValue("EmpId", Session("EmpId"))'Parameter1 report.SetParameterValue("EmpName", Session("EmpName"))'parameter2 after that in crystalreport see in field explorer,parameter field add there ur parameter names..., u can send number of parameters like this..., It will work nice..., Regards, Magesh,
Magi