Report Viewer doesn't show any data after publish
-
Thursday, August 23, 2012 2:53 AM
Hello I'm using C# 2010 and sql server compact edition 3.5 to build my database, and I use report wizard to generate a report from my database, but unfortunately after I published the app, my report viewer doesn't show anything even I have inserted a new record. Here is my code to simply show data on report viewer :this.jadwalkuliahTableAdapter.Fill(this.Dataset.jadwalkuliah); this.reportViewer1.RefreshReport();
Note : report viewer shows data from my database while debugging process.- Moved by amber zhang Friday, August 24, 2012 1:59 AM (From:SQL Server Compact)
All Replies
-
Monday, August 27, 2012 5:37 AMModerator
Hi Raditya,
Report definition (.rdlc) files are bound to DataSet objects or business objects that contain the data you need. We need to bind data to a report. Please refer to the following article:
Creating Data Sources for a Report: http://msdn.microsoft.com/en-us/library/ms252094(v=vs.100).aspxIn your case, you can remove the ReportViewer control and then redesign a report for your application. If you have any more questions about ReportViewer control, you can post the question in ReportViewer control forum. It is appropriate and more experts will assist you.
http://social.msdn.microsoft.com/Forums/en-US/vsreportcontrols/threadsRegards,
Bin LongBin Long
TechNet Community Support
- Marked As Answer by Elvis LongMicrosoft Contingent Staff, Moderator Friday, August 31, 2012 2:00 AM

