Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
In a table I have 3 rows. I designed a crystal reports to show some fields. It worked well by showing fields of all the 3 rows. Later, I deleted a row and ran that same report file expecting it would show just 2 rows. But it shows the same 3 rows. What is the reason and how to run that report file to show just 2 rows only.
Thanks.
Posted
Comments
Jörgen Andersson 17-May-14 5:08am    
What kind of table is it and what kind of datasource are you using?
S.Rajendran from Coimbatore 17-May-14 5:46am    
it is sql table and used 'crystalreportviewer' to design the report
S.Rajendran from Coimbatore 18-May-14 0:57am    
string filePath = Path.Combine(Application.StartupPath, "/WindowsFormsToSqlTest/WindowsFormsToSqlTest/CrystalReport11.rpt");
reportDocument.Load(filePath);
crystalReportViewer1.ReportSource = reportDocument;
Note:
If I change the file as CrystalReport10.rpt and wanted to see its contents it shows the same details of CrystalReports11.rpt.
Sunasara Imdadhusen 27-May-14 6:07am    
Check database connection that both should point to the same database.
coded007 5-Aug-14 6:28am    
r u closing the object when you are existing it ?

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