Click here to Skip to main content
16,004,833 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please tell what will be solution for crystal report not run on other computer is asking for uid pwd and server name how can i solve this problem in window application in c#.
Posted
Comments
Uday P.Singh 4-Oct-11 14:12pm    
paste your code to help you better

one solution is you can use integrated security =true; while making crystal report...

C#
Session["Rpt"] = "CR_Member_payment_status.rpt";
       Session["Rpt_ds"] = ul.usp_fill_member_paydetail();
       string url = "report.aspx";
       string fullURL = "window.open('" + url + "', '_blank', 'height=500,width=800,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,titlebar=no' );";
       ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", fullURL, true);


here

ul is object of class userlist
and
usp_fill_member_paydetail();
is a method returns a data set...

try this...at your btn_show click...

report will not ask for username and password
 
Share this answer
 
have you used cystalreport.setlogonparameter ?

It would be helpfull to me if you show the code that you have written in your cs page.

i am waiting to hear from you.


yogesh.
 
Share this answer
 
Comments
Member 8164209 4-Oct-11 23:33pm    
No
Check This[^] out.

hope it helps :)
 
Share this answer
 
C#
ReportDocument crystalReport = new ReportDocument();
 crystalReport.Load(Server.MapPath("CRSalesWorkOrder_Annexure.rpt"));
 crystalReport.SetDatabaseLogon("UserName","Password","ServerName","DataBase");
 crystalReport.SetDataSource(dt);
 CrystalReportViewew.ReportSource = crystalReport;

use the above code to send programatically the user id and password to the report
 
Share this answer
 
v2

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