Click here to Skip to main content
15,915,873 members

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.