Click here to Skip to main content
15,914,444 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
THE ASP.NET CRYSTAL EVERYTHING CODE IS RIGHT BUT DATA IT IS NOT DISPLAY PLEASE INFORM ME IT IS URGENT

C#
if (!Page.IsPostBack)
            { CrystalReportViewer1.Visible = true;
                ReportDocument rptDoc = new ReportDocument();
                CreportsEntities ce = new CreportsEntities();
                var qr = ce.products.Select(per => new { ProductDate = per.ProductDate,
                    ProductId = per.ProductId, 
                    ProductName = per.ProductName, 
                    ProductPrice = per.ProductPrice }).ToList();
                rptDoc.Load(Server.MapPath("~/CrystalReport1.rpt"));
                rptDoc.SetDataSource(qr);
                CrystalReportViewer1.ReportSource = rptDoc;
               
                CrystalReportViewer1.DataBind();
            }
Posted
Updated 5-Oct-15 22:13pm
v2
Comments
Naveen.Sanagasetti 6-Oct-15 2:00am    
duplicate post remove your one of the post.
OriginalGriff 6-Oct-15 3:11am    
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalization if you want to be taken seriously.

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