So, I was having an issue similar to the thread at
Here is what i am doing currently:
DSN connection to a source via
Dim conn As New OdbcConnection("DSN=lalConnect")and then
input = getfile()
While (Not (input.Contains(".rpt")))
MessageBox.Show(input & " is NOT a .rpt file")
input = getfile()
End While
ReportViewer.CrystalReportViewer1.ReportSource = input.ToString
I set the compiler to be for any CPU type (x86 || x64)
My error throws in the last line of the above code and would show message "An Error Occurred creating the form. See Exception.InnerException for details. The error is: The type initializer for 'CrystalDecisions.Shared.SharedUtils' threw an exceptiion."
I wasnt quite sure as to why this was happening, and as a side question, i wasnt sure how to connect my DSN connection to the report so it can properly pull information. could be a reason why it is throwing this error..?
Thanks everyone.
P.S.- If you need more information, i can post it.
Edited by: fallenreaper on Feb 14, 2011 4:38 PM
Request clarification before answering.
Guys,
you must install the correct crystal report runtime (32 or 64) and this error will be resolved.
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.