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
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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 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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.