帳號:
密碼:
驗證碼:
保存期:
略過巡覽連結首頁 : 討論專區 : RWD如何呼叫RDLC報表
 
1. 主題:   RWD如何呼叫RDLC報表
發表人名稱 ﹕ kingtony  發表日期 ﹕ 2020/11/13 下午 02:44:39 
發表人來自 ﹕
60.248.221.4     
原文 ﹕
 
jq呼叫的方式:<br />exportReport(null, "SB2BVPO_VENDOR.B2BVPO_NUM_H", "B2BVPO_NUM_H", "~/B2BVKT/QReport1_3_a.rdlc", setWhere);<br />請問rwd如何呼叫呢?<p></p>

附件:


2. 主題:   Re:RWD如何呼叫RDLC報表
發表人名稱 ﹕ Lily  發表日期 ﹕ 2020/11/13 下午 04:21:36 
發表人來自 ﹕
116.233.73.65     
原文 ﹕
 
<p>如果是要寫程式調用:</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var options = {};<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; options["RemoteName"] = "SSingles.Customers";<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; options["WhereString"] = "CustomerID LIKE 'B%'";&nbsp; //可以放比如查詢條件,報表會按此條件過濾。如果不需要過濾,該項可以不用設定。<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; options["TableName"] = "Customers";&nbsp; &nbsp;//server的InfoCommand名字<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; options["ReportFile"] = "~/RWD/CustTable.rdlc";&nbsp; //報表名字,可以設定,也可以不設定,不設定直接取grid的ReportFileName的屬性<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('#dgMaster').datagrid('exportReport', options);<br /></p><p>如果是設定grid上的Toolitem直接設定exportReport就可以。</p><p>另外,上面的程式是動態設定的內容,如果是直接使用grid的相關屬性,可以直接:</p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var options =&nbsp; $('#dgMaster').datagrid('options');<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('#dgMaster').datagrid('exportReport', options);<br /><p></p>

附件:


請點此至新網站發問