cancel
Showing results for 
Search instead for 
Did you mean: 

Problem showing the crystal report viewer in form after added the component on it

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

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

Answers (0)