09-05-2014 01:48 AM
HI Guys,
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.
"slxErrorId": "SLX3BAABE00E123211B",
"mitigation": "ErrorContent (1)",
"date": "2014-09-04T16:51:47",
"utc": "2014-09-04T15:51:47",
"message": "(0): error CS1705: Assembly 'Saleslogix.Reporting.API, Version=8.1.0.1224, 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=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
"type": "System.Web.HttpCompileException",
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?
Cheers,
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)
http://scn.sap.com/docs/DOC-7824
But I'm not sure this is advisable or even licensed in a live environment...
09-05-2014 08:49 AM - edited 09-05-2014 09:00 AM
Please ignore previouis post!
09-05-2014 09:11 AM
Hi,
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:
Direct links:
[Runtime Only]
32 bit MSI: http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_32bit_13_0_7.zip
[For developers: Integrates with Visual Studio]
Install Executable: http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_7.exe
Thanks
Mike
09-09-2014 08:11 AM
Thanks Mike!
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.
09-09-2014 08:35 AM
Ok, thanks for sharing your solution.
Thanks
Mike