C # Crystal Report, form not displayed, flash back

Source: Internet
Author: User

I. Description of the problem

Since the Crystal report is not integrated after VS2008, it needs to be downloaded separately.

Note here that if you are using a C # form program, be sure to download the exe file, install the MSI file, the VS toolbar can not find the Crystal Report control. If you have a 64-bit system that must be installed at 64 for runtime, the specific steps into

Download the tutorial below

Http://www.jb51.net/softjc/88860.html

But I found that after the installation of the VS2013 new form already has the RPT File option for the Crystal Report, but the form with the report is run with a direct flashback.

This error was found after debugging:

Failed to load file or assembly "files:///C:\Program Files\sap businessobjects\crystal Reports for. NET Framework 4.0\common\ SAP businessobjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll "or one of its dependencies. The system cannot find the file specified.  

Second, the solution

Add the following code to the App. Config file: (if your. NETFramework version is something else, you can change it yourself, or write uselegacyv2runtimeactivationpolicy= "true" directly in the Startup tab) )

<startup  uselegacyv2runtimeactivationpolicy="true">    < Supportedruntime version="v4.0" sku=". netframework,version=v4.0"/>  </startup>

I don't know why, but it works.

C # Crystal Report, form not displayed, flash back

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.