简体   繁体   English

如何为报表查看器实现文本搜索功能?

[英]how to implement text search functionality for report viewer?

This is my report page, on which my report viewer is working. 这是我的报告页面,我的报告查看器正在其中使用。 I want to search data by text box that I designed on top of my report viewer. 我想按我在报表查看器顶部设计的文本框搜索数据。

  <body>
   <form id="form1" runat="server">
    <div class="auto-style1">
      <asp:ScriptManager ID="ScriptManager1" runat="server">
      </asp:ScriptManager>
      <table class="auto-style2">
        <tr>
          <td>
            <asp:Label ID="Label1" runat="server" CssClass="auto-style4" Text="Patient Report"></asp:Label>
            <asp:TextBox ID="TextBox1" runat="server" Width="137px"></asp:TextBox>
            <asp:Button ID="BtnSearch" runat="server" Text="Search" />
          </td>
        </tr>
        <tr>
          <td class="auto-style3">
            <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt" Height="218px" WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Width="1010px">
              <LocalReport ReportPath="Report1.rdlc">
                <DataSources>
                  <rsweb:ReportDataSource DataSourceId="ObjectDataSource1" Name="DataSet1" />
                </DataSources>
              </LocalReport>
            </rsweb:ReportViewer>
            <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetData" TypeName="MedImage.DataSet1TableAdapters.DataTable1TableAdapter"></asp:ObjectDataSource>
          </td>
        </tr>
      </table>
    </div>
  </form>
</body>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM