Hey guys!
I've been using VB.Net to write a program to generate some quotes. I installed the Crystal Reports SDK to write the printouts for the quotes. Everything runs on the development computer. I'm starting to test it out on my client computers. But when I do, it throws an error that I don't understand. "The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. I really don't know what this means. Any ideas?
Thanks bunches!
Request clarification before answering.
The internals of the SDK are based on some COM components that have to be specifically registered with the OS before they'll work correctly. Because of this, you can't just copy over the assemblies that are used in your application and expect it to work. You have to download and run one of the SDK runtime installs to make sure that everything gets registered correctly. The version (SP) of the runtime that you use should match the SP of the SDK that you integrated with Visual Studio in order for everything to work correctly.
-Dell
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks! Installing runtime SDK on the client PC did the trick. Actually that did throw another error about failing to open the connection. I had to set up the ODBC too. But after that it works.
Thanks again!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When you deploy your application, you need to take care of installing the matching Crystal runtime.
See: https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads
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 | |
| 5 | |
| 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.