看了好多帖子,都说是不在服务器上安装程序就用不了水晶报表,可是我为什么发布了连主页都打不开了呢,提示:
Server Error in '/xxxxx' Application.
--------------------------------------------------------------------------------
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
我搜到一些解决方法,其中提到:
1、在你的开发环境中找到Visual Studio安装目录下的"SDK"v2.0"BootStrapper"Packages"CrystalReports,将安装文件CRRedist2010_x86.msi,复制到服务器中并安装。
可是我的vs2010里没有CRRedist2010_x86.msi这个文件啊
C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\Crystal Reports for .NET Framework 4.0这里面是
package.xml
C:\Program Files\Microsoft Visual Studio 10.0\SDK下只有个3.5,里面有个bin文件夹,还是空的
------解决方案--------------------------------------------------------
web应用如果用viewer上的打印按钮,取到了也是没用的。
如果你的程序是公网,或者大内网,在这个方面上就不用做太多工作了
这个打印功能已经由客户端控件接管了,服务器端的代码上处理不到得。
对于自定义纸型,一个比较可行的方法是在服务器端导出成pdf,客户端允许在浏览器中直接预览pdf
然后依赖于pdf浏览器控件的打印功能实现自定义纸型的打印。