2

운영 시스템에 ReportDocument에 대한 SetDataSource하기오류는 비주얼 스튜디오 2010 (C#을)

내 코드 : 라인 3

ReportDocument rd = new ReportDocument();//Line1 
rd.FileName = "rpt1.rpt";//Line2 
rd.SetDataSource(getinfo());//Line3 
crystalReportViewer1.ReportSource = rd;//Line4 
crystalReportViewer1.Show();//Line5 

오류 :,453 (210) 오류로드 파일 (파일이 존재하다) : 오류의 사진 :
http://s2.picofile.com/file/7873257090/SetDataSource.png

답변

0

열기의 app.config 및 추가 코드 :

<startup useLegacyV2RuntimeActivationPolicy="true"> 
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> 
</startup> 
<runtime> 
    <generatePublisherEvidence enabled="false"/> 
</runtime>