Skip to Content

Visual Studio 2012 (vb.net) and Crystal Reports XI error message when attempting to print a report.

I am using vb.net Visual Studio 2012 and Crystal Reports XI.

When I execute the following line of code: Dim Cry_Rpt_To_Print As New CrystalDecisions.CrystalReports.Engine.ReportDocument

I receive this message: "The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception."

I have the same vb.net project copied to another PC running VS 2012 and CR XI, and the code runs successfully.

I suspect my problem may be with the referenced dll.

Any help with troubleshooting is appreciated.

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Feb 04, 2019 at 02:17 PM

    CR XI is not supported in any version of VS above VS 6.

    The new runtime is now available from here:

    https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads

    Replace all of the CR assemblies with the new version 13.0.3500.0

    Read all of the SP 21 info...

    Don

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 05, 2019 at 11:56 PM

    Thank you.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.