cancel
Showing results for 
Search instead for 
Did you mean: 

The document has not been opened

disaia
Explorer
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

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

Answers (5)

Answers (5)

chathuranga93
Member
0 Kudos

My problem sorted with the following crystal runtime version.

CRforVS_redist_install_64bit_13_0_20

disaia
Explorer
0 Kudos

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?

disaia
Explorer
0 Kudos

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/

disaia
Explorer
0 Kudos

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?

0 Kudos

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?