<form id="form1" runat="server">
<%--报表容器--%>
<input id="BtnQuery" type="button" value="Search" class="Button2" />
<div id="viewerContainer" style="width: 98%; height: 700px;"></div>
<%--报表载入--%>
<script type="text/javascript">
$(function () {
var viewer = GrapeCity.ActiveReports.Viewer({
element: '#viewerContainer',
reportService: {
url: '/WebService2.asmx'
},
uiType: 'desktop',
reportLoaded: function () {
reportsButtons.prop('disabled', false);
},
renderMode: 'Galley',
ViewerType:'HtmlViewer'
});
var reportsButtons = $('#BtnQuery');
reportsButtons.bind('click', function (ev) {
reportsButtons.prop('disabled', true);
var reportOption = {
id: 'DataChart.rdlx' //传参数
};
viewer.option('report', reportOption);
});
});
</script>
</form>
我选择这种渲染方式的时候又不行了,我加了个ViewerType:'HtmlViewer'属性,也没好用
|