水晶报表ActiveX控件打印
首先将水晶报表printmode 的pdf改为ActiveX,然后从http://support.businessobjects.com/CRforVS2005/PrintControl.cab# 下载printcontrol.cab
方法一:
直接解压PrintControl.cab后把PrintControl.dll添加到引用,这样不需要<add key="url" value="http://localhost/PrintControl.cab" />,这里好象要绝对路径.而且速度比较慢
方法二:
然后在web.config中插入:
<configSections>
<sectionGroup name="businessObjects">
<sectionGroup name="crystalReports">
<section name="printControl" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null" />
</sectionGroup>
</sectionGroup>
</configSections>
<businessObjects>
<crystalReports>
<printControl>
<add key="url" value="http://localhost/PrintControl.cab" />
</printControl>
</crystalReports>
</businessObjects>