// Method will be called to initialize the report information to load the report with ReportHelper for processing.
        public void OnInitReportOptions(Syncfusion.EJ.ReportViewer.ReportViewerOptions reportOption)
        {
            string basePath = _hostingEnvironment.WebRootPath;
            // Here, we have loaded the sample report report from application the folder wwwroot. Sample.rdl should be there in wwwroot application folder.
            FileStream reportStream = new FileStream(basePath + @"\invoice.rdl", FileMode.Open, FileAccess.Read);

            reportOption.ReportModel.Stream = reportStream;
        }
Пример #2
0
 public void OnReportLoaded(Syncfusion.EJ.ReportViewer.ReportViewerOptions reportOption)
 {
 }
Пример #3
0
 public void OnInitReportOptions(Syncfusion.EJ.ReportViewer.ReportViewerOptions reportOption)
 {
     reportOption.ReportModel.ReportingServer        = this.Server;
     reportOption.ReportModel.ReportServerUrl        = this.ServerURL;
     reportOption.ReportModel.ReportServerCredential = new NetworkCredential("Sample", "Passwprd");
 }