private void BindSchoolInformation() { try { this.reportViewer1.RefreshReport(); Assembly _assembly = Assembly.GetExecutingAssembly(); //reportViewer1.LocalReport.ReportPath = Application.ExecutablePath; string str = Application.UserAppDataPath; //StreamReader subreport = new StreamReader(_assembly.GetManifestResourceStream("ZReports.Report1.rdlc")); //// StreamReader subreport = File.OpenText(@"C:\Users\Administrator\Documents\Visual Studio 2010\Projects\ReportApplication\Report2.rdlc"); this.reportViewer1.LocalReport.ReportEmbeddedResource = "ZReports.Report1.rdlc" reportViewer1.LocalReport.DataSources.Clear(); reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("dataTableSchool", dataTableSchool)); reportViewer1.LocalReport.SetParameters(paramtr); this.reportViewer1.RefreshReport(); ; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)