on 08-27-2014 6:26 PM
Greetings
I have a problem running a program. I created a form which I added the component Crystal Report Viewer perfecty but during program execution when I call that form my VS 2012 Ultimate show the following error:
Translated:
Failed to create the form. See Exception.InnerException for details. Error: An exception occurred in the type initializer for 'CrystalDecisions.Shared.SharedUtils'.
Note: If I remove the component from the form. the applications runs fine when calling the form without the component CrystalReportViewer
It is something related to my VS? o just that the actual version 13.0.9 is not yet compatible?
Report.Show?
How about you try:
CrystalReportViewer1.ReportSource = <path to your report>
Or:
Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument
crReportDocument.Load(<path to your report>)
CrystalReportViewer1.ReportSource = crReportDocument
Or, if the report is added to the project:
crReportDocument = New test
CrystalReportViewer1.ReportSource = crReportDocument
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter
Message was edited by: Ludek Uher
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.