09-05-2014 01:48 AM
Currently working on an issue in a Dev Upgrade of 7.5.4 --> 8.1 whereby some web customisation uses WebReportingClass (part of the old SLWR.dll in 7.5.4) to run & save a Crystal Report as a PDF then create an associated attachment. I understand as of 8.1, the WebReportingClass / ReportDocument Objects are not available, so I've been trying to do something similar with the Saleslogix.Reporting.API using code like the below:
var slxRpt = new SlxReporting.SlxReport();
slxRpt.Load(tempPath + "test.rpt");
slxRpt.ExportAsPdf(tempPath + "test.pdf");
However, this page errors on loading. Suggesting that I have the wrong CrystalDecisions assemblies in my wwwroot (neither come in the 8.0 or 8.1 vanilla VFS projects, as far as I can tell) or that the new reporting.api.dll references assemblies I couldn't possibly have.
"mitigation": "ErrorContent (1)",
"message": "(0): error CS1705: Assembly 'Saleslogix.Reporting.API, Version=22.214.171.1244, Culture=neutral, PublicKeyToken=null' uses 'CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' which has a higher version than referenced assembly 'CrystalDecisions.CrystalReports.Engine, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'.",
"source": "System.Web.Compilation.AssemblyBuilder, System.Web, Version=126.96.36.199, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
My question is:
Is this a bug with the Reporting.API or has something got muddled in my install?
And if the later, where might i get the correct versions of the assemblies?
09-05-2014 01:55 AM
I'm going to Snapshot my VM and try installing this:
(support pack 2, seems to be the right version)
But I'm not sure this is advisable or even licensed in a live environment...
09-05-2014 09:11 AM
The Web Host install should be installing "SAP Crystal Reports, developer version for Microsoft Visual Studio" version 13 Update Pack 7. The stand alone install can be downloaded from: http://scn.sap.com/docs/DOC-7824. Choose the 32 bit MSI or since you are developing you may prefer the install executable:
[For developers: Integrates with Visual Studio]
Install Executable: http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_7.exe
09-09-2014 08:11 AM
I found that the bin folder contained some old Crystal assemblies for version 11. I'm not sure how or why they were there! Deleting those did the trick.