Click here to Skip to main content
14,733,013 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
pass Username and password in crystal report

when i run the report he asking me database login
how can i disable that

Print from dataGridView1

Report.ReportCatCustomersSingle reportcustomer = new Report.ReportCatCustomersSingle();
reportcustomer.SetParameterValue("@catId", this.dataGridView1.CurrentRow.Cells[0].Value.ToString());
Report.FormCatProducts fmct = new Report.FormCatProducts();
fmct.crystalReportViewer1.ReportSource = reportcustomer;
Updated 26-Mar-15 13:51pm
Herman<T>.Instance 26-Mar-15 18:30pm
What's the question?
Why the same codeblock?

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