最近在做一个项目,有一个模块涉及到报表,一开始就纠结选什么报表的问题,那些好用点或是美观一点的都是要收钱的,我项目实现的的需求并不是很复杂,权衡之下选择了水晶报表。我的开发平台:visual studio 2013,安装了CrystalReport for VS2013的版本。
环境搭建好了之后,开始按照网上的demo一步一步的做:
1.拖一个crytalreportviewer控件
2.报表向导创建一个Crystalreport.rpt文件
3.关联数据库中表的字段
准备完成之后开始在游览器中查看该网页,结果什么也没有,F12进入调试界面:
解决这个问题的办法:
安装了水晶报表组件后,会在路径:C:\inetpub\wwwroot 下有一个文件aspnet_client,报表在加载的时候需要加载其中的一些样式和脚本,把他复制后放在网站的根目录下即可
问题已解决