2013-09-06 2 views
0

Visual Studio 2012의 webapplication project.t에서 rdlc 보고서를 만들었습니다. 모든 단계가 올바르게 수행 되었습니까 (모두 UI에서 수행되었습니다) 프로젝트를 실행할 때 코딩하지 않습니다. alwasy보고서 'Report1'에 대한 보고서 정의가 지정되지 않았습니다.

An error occurred during local report processing. 
    The report definition for report 'Report1' has not been specified 
     Object reference not set to an instance of an object. 

는 다음 codebehind.then 오류 desapier에서 ReportViewer1.LocalReport.ReportPath = 속성을 설정 오류 다음과 properly.my 두통을 작업 얻을 것은 코딩을하지 않고이 속성을 설정하는 방법을했다? '코딩을하지 않고'당신은 코드 숨김 파일을 사용하지 않고 의미에 의한 경우

+0

에서 참조하시기 바랍니다 [ "내 RDLC 보고서에서 'xxxx.rdlc'보고서에 대한 보고서 정의가 지정되지 않았습니다."(http://stackoverflow.com/questions/8505700/im-getting-the-report-definition-for- report-xxxx-rdlc-has-not-specified-specified/34435136 # 34435136). –

답변

3

, 당신은 지금처럼 ReportViewer 컨트롤 자체 내부의 ReportPath 속성을 설정할 수 있습니다 :

<rsweb:ReportViewer id="report" runat="server"> 
    <LocalReport ReportPath="Your report path here"></LocalReport> 
</rsweb:ReportViewer> 
+0

안녕하세요 새라, 예. 코드 뷰어를 사용하여 보고서 뷰어 컨트롤러에서 보고서를 선택하면 왜 코드가 설정되지 않습니까? –

+0

@AruniGodage'ReportViewer' 컨트롤은'ReportPath'를 필요로합니다. '왜 지역 보고서가 아예 설정되지 않은거야?'라는 의미는 무엇입니까? – Saravana

+0

** asp.net 웹 사이트 확인 ** [this] (http://stackoverflow.com/a/37321117/2218697) 답. 희망이 도움이됩니다. – stom

3

보고서에이 줄을 교체 이 라인에보기

<LocalReport ReportEmbeddedResource="report.Report1.rdlc"> 

<LocalReport Reportpath="Report1.rdlc"> 
관련 문제