2013-03-18 7 views
-1
내가 매개 변수를 입력 한 다음 코드를 사용하고

.....보고서 정의의 소스는

var invdata = SaleInvCode.GetbyId(invID); 
var invdat = (from a in db.invDetails where a.InvDetailID == invID select new { a.SaleInv, a.ProName, a.Discription, a.SaleQTY, a.SalePrice, a.SaleAmount }).ToList(); 
//var invdetai = from a in db.invHeaders select a; 
///////////////////////// 
invHeader.DataSource = invdata; 
reportViewer1.LocalReport.DataSources.Add(new ReportDataSource(reportViewer1.LocalReport.GetDataSourceNames()[0], invHeader)); 
reportViewer1.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Local; 

오류가 지정되지 않은

Error:: The source of the report definition has not been specified 

나는 보고서 매개 변수를 만드는거야 .....

+0

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

답변

1

매개 변수를 할당하기 전에 보고서보기에 사용할 로컬 보고서를 지정해야합니다.