本帖最后由 KearneyKang 于 2017-7-24 09:32 编辑
您参考下这个博客吧,Html5Viewer通过JS传值给报表,你可以好好参考下
http://blog.gcpowertools.com.cn/post/html5viewerParameter.aspx
<script type="text/javascript"> $(document).ready(function () { $("#button1").click(function () { var result1 = $("#input_text1").val(); var viewer = GrapeCity.ActiveReports.Viewer({ element: '#viewerContainer', report: { id: 'RdlReport1.rdlx', parameters: [{ name: 'ReportParameter1', value: $("#input_text1").val(), }]}, reportService: { url: '/ActiveReports.ReportService.asmx' }, uiType: 'Desktop', localeUri: 'Scripts/i18n/Localeuri.txt', }); }); });
|