how to set Datatable as datasource in ReportViewer

前端 未结 3 1373
广开言路
广开言路 2020-12-17 05:45

I was searching in the last question about Datatable as datasource in ReportViewer and i found this as solution

DataTa         


        
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-17 06:15

    You can add source like below

    LocalReport report = new LocalReport();
    
    string startupPath = Environment.CurrentDirectory;
    report.ReportPath = startupPath + @"\RDCLTemplate.rdlc";
    report.Refresh();
    

提交回复
热议问题