Last post Aug 19, 2013 07:48 AM by MetalAsp.Net
Aug 19, 2013 07:44 AM|Manish_Tiwari_92|LINK
i have a table of employee and i want generate crystal report for a particular employee by using ID of employee.
code of my crystal report:
protected void Page_Load(object sender, EventArgs e)
private void showreport()
ReportDocument rd = new ReportDocument();
if (Session["rptType"].ToString() == "Item")
CrystalReportViewer1.ReportSource = rd;
Aug 19, 2013 07:48 AM|MetalAsp.Net|LINK
In the select statement of the report you basically add a where clause worth a parameter. Then you set this parameter in your code, in the showreport method, for the specific user you want the data for.