-1
我認爲這很基本,但我對報表工具很陌生。需要將ASP.NET文本框中的動態值傳遞到報表查看器
我有一個網絡表單,我有幾個輸入控件,我需要從數據庫中獲取數據以將它們填充到報表中。我必須能夠以Excel或PDF格式獲取報告,因此我選擇了提供這些功能的報告查看器。請檢查我的代碼,並給我一個關於如何通過傳遞輸入參數來開發報告並獲取生成的報告的代碼或想法。我的ASPX代碼是:
<section id="content" class="has-btn-bar-btm-fixed"><!-- content -->
<form runat="server" class="form-horizontal custom-form row">
<div class="cost-transfer-block"><!-- cost-transfer-block -->
<div class="container-fluid">
<div class="row">
<div class="col-md-8 col-lg-10">
<h2>Dump by item</h2>
<div class="col-md-6">
<div class="form-group">
<asp:label runat="server" Text="From Site" ID="lblFromSite" class="control-label col-sm-3 col-md-3 col-lg-3" ></asp:label>
<div class="col-sm-9">
<div class="input-group">
<select class="form-control">
<asp:DropDownList ID="DdlFromsite" runat="server" ></asp:DropDownList>
</select>
<span class="input-group-addon"><a href="javascript:;"> </a></span>
</div>
</div>
</div>
</div>
<div class="col-md-6 cst-brd-left">
<div class="form-group">
<asp:label runat="server" Text="From Date" ID="lblFromDate" class="control-label col-sm-3 col-md-3 col-lg-3" ></asp:label>
<div class="col-sm-9 transferdate">
<div class="input-group date">
<input type="date" class="form-control" id="" placeholder="Select Date" >
<span class="input-group-addon"><a href="javascript:;"><img src="images/icon-add-on-2-date.png" alt="" /></a></span>
</div>
</div>
</div>
<div class="form-group">
<asp:label runat="server" Text="To Date" ID="lblToDate" class="control-label col-sm-3 col-md-3 col-lg-3" >To Date</asp:label>
<div class="col-sm-9 transferdate">
<div class="input-group date">
<input type="date" class="form-control" id="" placeholder="Select Date" >
<span class="input-group-addon"><a href="javascript:;"><img src="images/icon-add-on-2-date.png" alt="" /></a></span>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-4 col-lg-2">
</div>
</div>
</div>
</div>
<!-- /cost-transfer-block -->
<div class="gray-btn-row clearfix">
<div class="btns-group">
<asp:button runat="server" Text="Enter" ID="btnEnter" class="btn btn-dark-blue"></asp:button>
</div>
</div>
</form>
</section>
請給我一個代碼或想法,我可以通過點擊輸入按鈕生成報告。
由於事先
迪帕克上按鈕單擊