on 01-17-2019 9:29 PM
I am running a Windows Form application from Visual Studio 2017 and I keep getting an error on this line:
ReportDocument cryRpt = new ReportDocument();
InnerException = null
Message="The document has not been opened"
Source="clientdoc.dll"
References:
CrystalDecisions.CrystalReports.Engine
CrystalDecisions.ReportSource
CrystalDecisions.Shared
All have version = 13.0.2000.0
Programs installed:
SAP Crystal Reports, version for Visual Studio version 13.0.24.2970
SAP Crystal Reports runtime engine for .NET Framework (64-bit) version 13.0.24.2970
This program runs fine on another server, but the same code produces error when I transfer it to the current server.
I've tried various solutions but nothing works, I always get the same error.
Dominic Isaia
Easier fix
Download SP 24 from the SAP WIKI here:
https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads
On that page is a file, download it, rename the file to your exe file. It will then use the older version of the runtime.
To get an older version just change the SP number in the link,
Example, if you want SP 15 then change this:
http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_32bit_13_0_24.zip
to this:
http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_32bit_13_0_15.zip
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My problem sorted with the following crystal runtime version.
CRforVS_redist_install_64bit_13_0_20
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
One last question, why doesn't the latest Crystal Reports for Visual Studio and the latest Crystal Reports runtime work with the latest Visual Studio (2017)? Is this a known problem they are working on?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Fixed!
I installed an older Crystal Reports for Visual Studio and Crystal Reports runtime (Service Pack 15)(64 bit) on my Visual Studio 2017 PC and that got rid of the error.
I got the older versions from this website:
https://www.tektutorialshub.com/crystal-reports/how-to-download-and-install-crystal-report-runtime/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The other PC has Visual Studio 2013 and has the CR runtime installed (different version number, 13.0.12.1494)
I tried all setting for the app Platform target but all result in the same error message, on that same line.
The Platform target is currently set at "Any CPU""
I didn't try installing the older version of the CR runtime.
Should I try installing older versions for Visual Studio 2017?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you install the CR runtime on the other PC?
Is the app set for AnyCPU or x86/x64 and did you instlal that version of the runtime package?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.