Crystal reports error in SetDataSource

前端 未结 3 963
囚心锁ツ
囚心锁ツ 2021-01-04 21:54

I am having trouble in VS 2010 sap crystalreports, using c# to make a windows application.

I get the following error with the following code:

 Crysta         


        
相关标签:
3条回答
  • 2021-01-04 22:01
     <startup useLegacyV2RuntimeActivationPolicy="true" >
        <supportedruntime version="v4.0" sku=".NETFramework,Version=v4.0" />
     </startup>
    

    Add this code in app.config.

    0 讨论(0)
  • 2021-01-04 22:06

    You probably need to install the crystal reports runtime files. You should be able to do a google search to find them. The error message is pretty explicit in telling you the problem is a missing .dll. Read it ;)

    edit: Try locating the crdb_adoplus.dll on your machine and copying it to the application directory.

    0 讨论(0)
  • 2021-01-04 22:22

    Try using this solution by adding the useLegacyV2RuntimeActivationPolicy attribute to your .config file

    <startup useLegacyV2RuntimeActivationPolicy="true">
    
    0 讨论(0)
提交回复
热议问题