cancel
Showing results for 
Search instead for 
Did you mean: 

Problems displaying CR Viewer when using VS2010

Former Member
0 Kudos

When I try to display a form containing reference to a CR Viewer I get the following error message:

*An error occurred creating the form. See Exception.InnerException for details. The error is: The type initializer for 'CrystalDecisions.Shared.SharedUtils' threw an exception.*

Other info: Win7 Pro 64 is operating system. Installed Beta 2 of CR last August and was able to upgrade old CR (Ver 8.5) reports and to display reports albeit by a rather convoluted process. I created a seperate form for each report, added the viewer, showed the form which then displayed the report. To display form showing report the code line = "frm_cr_rpt01.show"

RECENTLY installed CR13 and this is when the problems started. I can no longer call up the previously running 'report' forms as I get the same error as above. I have tried adding the CR viewer directly to the 'calling' form and displaying the report with code line= "me.cr_rpt01.printreport" (similar to the process used in VB6) and get the same error.

I can open the CRreport.rpt in solution explorer and data and all report formatting displays just fine.

Suggestions anyone?

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Moved to .NET SDK forum

Make sure all your references are version 13 now, clean up your app.config file. Search this forum on how to "clean up" your PC if it's the same as the beta PC and then reinstall.

Make sure you are using the 4.0 frame and not the client version.

Thank you

Don

Answers (0)