Skip to Content

The document has not been opened

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • Best Answer
    Jan 21 at 09:36 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 17 at 09:31 PM

    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?

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 18 at 04:34 PM

    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?

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 21 at 06:17 PM

    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/

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 23 at 06:14 PM

    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?

    Add comment
    10|10000 characters needed characters exceeded