Click here to Skip to main content
15,888,002 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using rdlc reports to show vehicle data. the select query that defines in sqldatasource for rdlc reports is not showing the whole data.
I run the same query on sql server it returns all records but on report it only show randomly 15 record.

C#
<rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana"
        Font-Size="8pt" InteractiveDeviceInfos="(Collection)"
        style="text-align: center; margin-left: 58px" WaitMessageFont-Names="Verdana"
        WaitMessageFont-Size="14pt" Width="" Height="">
        <LocalReport ReportPath="ViewUpdates\Disposevehicles.rdlc">
            <DataSources>
                <rsweb:ReportDataSource DataSourceId="SqlDataSource2" Name="DataSet1" />
            </DataSources>
        </LocalReport>
    </rsweb:ReportViewer>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server"
        ConnectionString="<%$ ConnectionStrings:ApplicationServices %>"
        SelectCommand="SELECT VehicleRegNum, Make, Type, DateOfPurchase, DateOfReg, DateOfDisposal, Agency FROM Disposedvehiclesview WHERE (Agency = @Name)">
        <SelectParameters>
            <asp:ControlParameter ControlID="DropDownList1" Name="Name"
                PropertyName="SelectedValue" />
        </SelectParameters>
    </asp:SqlDataSource>
Posted

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