Click here to Skip to main content
15,446,232 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have done a web application in C# using VS 2010. There is a problem with the crystal report viewer, for that i have used SAP Crystal report.

Now I have deployed this application in web. I am getting lot of problem. The report are giving error.

Please give me a solution.

luisnike19 8-Dec-11 10:02am    
Which error? It's better than trying to guess what's the problem
Mastersev 8-Dec-11 16:17pm    
What errors are you getting?
Onudipto 30-Sep-18 3:03am     CRLF
My project crystal report for vs 2010 nicely works in windows xp but when I setup it in windows 7 or 10 in 32 bit or 64 bit it does not work any 32 or 64 bit windows.I used datatable in crystal report. I discussed with many big programmers they suggest me about add some dll in project or use dataset. but it does not work also. same problem. Can any one in the world help me? I and some programmers waste 7 days in the same problem but not found any solution. help? help? what is the solution????I use SQL Server in database and c# windows application. I have Googled and done every things in my side. What I have tried: private void PrintRep() { //DataSet ds = new DataSet(); //string connStr = ConfigurationManager.ConnectionStrings["conn_str"].ConnectionString; SqlDataAdapter dadapter = new SqlDataAdapter("SELECT * FROM dbo.T_ATTR Order by dbo.T_ATTR.IndRegID ", "Data Source=DESKTOP-IRFOPKM\\SHUVO;Initial Catalog=ServiceOneEasyClock;User ID=sa;Password=S123456_"); DataSet dset = new DataSet(); dadapter.Fill(dset, "dbo.T_ATTR"); int op = 0; op= 1; frmReportsViewer rptviewer = new frmReportsViewer(op, dset); rptviewer.Show(); } private void frmReportsViewer_Load(object sender, EventArgs e) { if (option == 1) { try { //ParameterFields pfs = new ParameterFields(); //pfs = GetCompanyInformation(); //crystalReportViewer1.ParameterFieldInfo = pfs; string username = "sa"; // database user name string password = "S123456_"; //database password ds.AcceptChanges(); tyu.Refresh(); ////tyu.Refresh(); //tyu.Refresh(); try { tyu.SetDataSource(ds); } catch(Exception ex) { MessageBox.Show(ex.ToString()); } crystalReportViewer.ReportSource = tyu; crystalReportViewer.RefreshReport(); crystalReportViewer.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message.ToString()); } } if (option == 2) { try { //ParameterFields pfs = new ParameterFields(); //pfs = GetCompanyInformation(); //crystalReportViewer1.ParameterFieldInfo = pfs; oRpt2.SetDataSource(dtr); crystalReportViewer.ReportSource = oRpt2; } catch (Exception ex) { MessageBox.Show(ex.Message.ToString()); } } }

1 solution

Share this answer

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