15,915,873 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by RookieCoder_NG (Top 2 by date)
RookieCoder_NG
31-Jul-12 8:45am
View
Wish I could up vote your comment. :)
RookieCoder_NG
27-Jul-12 1:59am
View
First of all, Thank you for the response.
Am sorry. Am not able to find the AutoDataBind property for the ReportViewer or even under ReportViewer1.LocalReport.. There is only the DataBind() method.
I was trying not to put my entire project here (as the rules said).. :)
<rsweb:ReportViewer ID="ReportViewer1" runat="server" Height="249px"
Font-Names="Verdana" Font-Size="8pt" InteractiveDeviceInfos="(Collection)"
WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt"
AsyncRendering="False">
<LocalReport ReportPath="Reports\Report.rdlc">
<DataSources>
<rsweb:ReportDataSource DataSourceId="ObjectDataSource1" Name="MyDataSet" />
</DataSources> </LocalReport>
</rsweb:ReportViewer>
The MyDataSet.xsd is initially empty. I write the schema in my DAL after retrieving the DataTable as follows..
resultDataSet.WriteXmlSchema(@"C:\Users\ng84527\Documents\Visual Studio 2010\WebSites\SampleReportsWeb\App_Code\MyDataSet.xsd");
And I forget to mention one more thing.. When I run the app for debugging, initially report shows..
"An error occurred during local report processing.
An error has occurred during report processing. MyDataSet"
Once I select the fieds for the query and hit the button..under which I add the ObjectDataSource parameter and refresh the ReportViewer..an empty report is displayed.
Am guessing there is some problem with the Report.rdlc file. There is no ReportItems element in it.