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