我按照以下步骤进行操作:
1、安装ActiveReports 6.0试用版,不激活
2、用End User Designer做一个1.rpx文件
3、新建一个WebApplication工程,添加一个ASP页面,并添加<a href="UploadFiles/1.rpx?OutputFormat=pdf">Sample</a>
4、在工程的引用文件夹上点击右键,选择添加引用,添加以下DLL的引用(注意不是直接将DLL拷贝到工程中),注意这里添加是在【添加引用】窗体的【.NET】Tab中选择的,不是通过【浏览】的方式添加:
ActiveReports.Document
C:\Program Files\Common Files\GrapeCity\ActiveReports 6\ActiveReports.Document.dll
ActiveReports.PdfExport
C:\Program Files\Common Files\GrapeCity\ActiveReports 6\ActiveReports.PdfExport.dll
ActiveReports.Web
C:\Program Files\Common Files\GrapeCity\ActiveReports 6\ActiveReports.Web.dll
ActiveReports6
C:\Program Files\Common Files\GrapeCity\ActiveReports 6\ActiveReports6.dll
5、在web.config文件中添加以下配置
<system.web>
<httpHandlers>
<!-- ********** ActiveReports HttpHandler Configuration ********** -->
<add verb="*" path="*.rpx" type="DataDynamics.ActiveReports.Web.Handlers.RpxHandler, ActiveReports.Web, Version=6.2.3681.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff"/>
<add verb="*" path="*.ActiveReport" type="DataDynamics.ActiveReports.Web.Handlers.CompiledReportHandler, ActiveReports.Web, Version=6.2.3681.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff"/>
<add verb="*" path="*.ArCacheItem" type="DataDynamics.ActiveReports.Web.Handlers.WebCacheAccessHandler, ActiveReports.Web, Version=6.2.3681.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff"/>
</httpHandlers>
</system.web>
6、运行Web程序,点击页面中的【Sample】,此时出现PDF中会有试用版的字样
7、激活ActiveReports 6
8、运行Web程序,此时PDF中不会有试用版的字样
你可以按照我的步骤一步一步的试一遍,如还有问题可以联系我们 |