Dear All
Currently I'm upgrading the Crystal Report to Crystal Server 2013 and creating a .NET page to download the report in PDF format. I followed the sample code in http://scn.sap.com/docs/DOC-28646 , and everything is fine, I can logon to the crystal report server, get the report, set the report datasource in runtime, and view the report in CrystalReportViewer. However, when I try to export the report to PDF by calling "PrintOutputController.Export(pdfFormat)", it shows "Attempted to read or write protected memory. This is often an indication that other memory is corrupt". It looks like something wrong with the PrintOutputcontroller as the exception goes out when I comment the function call of PrintOutputController. I tried to use the export function of CrystalReportviewer but nothing happened as well.
I tried to use ReportDocument, load the .rpt file, convert to ReportClientDocument and export to PDF and it works! So I guess it shouldn't be the problem of the report. Also I use the Administrator account to logon the server so it is unlikely the permission issue.
Can anyone please help? Many thanks!
# The server is windows server 2008 64bit.