创建插件 <script src="../CreateControl.js" type="text/javascript"></script> <script type="text/javascript"> function window_onload() { ReportViewer.Report.ShowProgressUI = true; ReportViewer.Start(); } </script> 在<body>中进行加载 <body style="margin:0" onload="window_onload()">
<body>中不可以存在form表单 否则会出现 "ReportViewer"未定义 <script type="text/javascript"> CreatePrintViewerEx("100%", "100%", "1a.grf", "Default.aspx", true, "<param name=ShowToolbar value=false>"+"param name="); CreateDisplayViewerEx("1114px auto", "410px", "1a.grf", "Customer.aspx", false, "<param name=ShowToolbar value=true>" + "<param name=BorderStyle value=1>"); </script>