Click here to Skip to main content
14,667,169 members
Rate this:
Please Sign up or sign in to vote.
See more:
this My code
I have Server with Ip Address
When I print By Crustal Report It Asking Password
     string CS = ConfigurationManager.ConnectionStrings["DBCS"].ConnectionString;
     using (SqlConnection con2 = new SqlConnection(CS))
         ReportsBasikData.ReportCatCustomers2 reportcustomer = new ReportsBasikData.ReportCatCustomers2();
         reportcustomer.SetDatabaseLogon("pc1", "Abdo1379", "con2", "MnStores", false);
         reportcustomer.SetParameterValue("@catId", this.dataGridView1.CurrentRow.Cells[0].Value.ToString());     

         ReportsBasikData.FormData fmct = new ReportsBasikData.FormData();
         fmct.crystalReportViewer1.ReportSource = reportcustomer;
catch { }
Updated 20-Sep-15 23:08pm
aarif moh shaikh 21-Sep-15 5:48am
Set this authentication in web.config file
Member 11280947 21-Sep-15 8:52am
How ?
aarif moh shaikh 24-Sep-15 0:44am
do google

1 solution

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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100