cancel
Showing results for 
Search instead for 
Did you mean: 

The document has not been opened.

08-29-2020 2:01 AM
1990 views 7 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

Getting below exception for the code var report = new ReportDocument();

Running on Crystal Reports runtime for Visual Studio 2019 (installed SP27 64bit)

Exception Found: Type: System.Runtime.InteropServices.COMException

Message: The document has not been opened.

Source: clientdoc.dll

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

0 Likes

Windows changed the location of our runtime, used to be here:

C:\Windows\assembly\GAC_MSIL

Now you'll find them here:

C:\Windows\Microsoft.NET\assembly\GAC_MSIL

You may need to remove them and add them back into your project.

Answers (3)

Answers (3)

0 Likes

I see this still hasn't been resolved and I'm writing this in 2023!

This is not my issue but I've been fighting something similar. I have to print my labels in landscape so I have to use the RAS SDK in my application. I'm not using a RAS server.

All I'm trying to do at this point is set current values for the report and print.

I get this same error.

I'm about fed up with this and thinking about switching everything to Bartender for these labels

0 Likes

Do you have any other version of Crystal Reports installed?

Windows or WEB app?

Right click on VS icon and select Run as Administrator and see if that works.

Is this a new app or old app that was updated?

All versions of the CR assemblies 13.0.3500.0?

Highly recommended to upgrade to the latest SP 28:

https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads

Don

Former Member
0 Likes

I do not have other version of CR. It is web app and not new app. It is working with VS2017 but not on VS2019. Now uninstalled SP27 and installed SP 28 and still the same issue.

DellSC
Active Contributor
0 Likes

Did you install the full runtime or did you just copy the files when you installed your application?

You can't just copy the files that are in your references when installing your application. Instead, you have to install the runtime while logged in with Administrator privileges. The innards of Crystal for VS is COM-based and you have to Administrator privileges in order to register the COM components and update the registry.

-Dell

Former Member
0 Likes

Yes i did full runtime installation with administrator privileges. Above version is installed on my pc now.

Former Member
0 Likes

Below are the versions installed and still having problem.

SAP Crystal Reports runtime engine for .Net Framework (64 bit) 13.0.27.3480

SAP Crystal Reports, version for Microsoft Visual Studio 13.0.27.3480