1、View文件夹内配置文件Web.config,添加2个引用 2、网站的配置文件Web.config,添加节点httpHandlers 3、控制器类代码 4、页面GetHtml()方法输出,注意同时要注册2个方法WebReportGlobals.Scripts(),WebReportGlobals.Styles() 效果图: